I would like to create a line with text below it as it can be seen often in contracts:    Ideally, that line would have a fillable element over it.  Minimal Working Example  The best I could come up (which is much better than I've expected as I started writing this question!) is:  \documentclass[a4paper]{scrartcl} \usepackage[utf8]{inputenc} % this is needed for umlauts \usepackage[ngerman]{babel} % this is needed for umlauts \usepackage[T1]{fontenc}    % this is needed for correct output of umlauts in pdf \usepackage[margin=2.5cm]{geometry} %layout \usepackage{csquotes}       % nice quotes \usepackage{parskip}        % I don't want indentation  \begin{document} \section{Untermietvertrag} Im Folgenden wird ein Untermietvertrag zwischen (nachfolgend \enquote{Hauptmieter} genannt)\\  \line(1,0){250}\\ \vspace{-0.3cm} {\scriptsize Name, Anschrift}\\  und (nachfolgend \enquote{Untermieter} genannt)\\  \line(1,0){250}\\ \vspace{-0.3cm} {\scriptsize Name, Anschrift}\\  geschlossen. \end{document}   which renders to    This solution does not have fillable form elements at the over the lines.  Is there probably a package that helps when you want to write a contract? Or a document class?
10750
I'm trying to create a signature and date line in a document.  I need the date line to always be in the same spot on the page no matter what name is under the signature line, such as:  ----------------------   ---------------------- Representative           Date  ----------------------   ---------------------- Program Manager          Date   Here is the code I currently have:  \makebox[2.5in]{\hrulefill} \hspace {1.0in}\makebox[2.5in]{\hrulefill} \\ User Representative \makebox[2.5in][r]{Date} \\  \vspace{.2in} \makebox[2.5in]{\hrulefill} \hspace {1.0in}\makebox[2.5in]{\hrulefill} \\ Program Manager \makebox[2.5in][r]{Date} \   I want to be able to change the names, such as change Program Manager to Joe Foo and have the word 'Date' stay in the exact place.  Any help would be greatly appreciated.  I'm still a newbie at TeX so please forgive my ignorance.
528
I am trying, loosely based on  to make a template for my Statement of Purpose. How could I remove the empty extra line between the horizontal rule and the text? Moreover, how could be the first letter be of larger font in the title?  Any other suggestion is more than welcomed.  \documentclass{article}  \usepackage[left=1in,right=1in,top=1in,bottom=1in]{geometry}  \newcommand{\HRule}{\rule{\linewidth}{0.5mm}} \newcommand{\Hrule}{\rule{\linewidth}{0.3mm}}  \makeatletter% since there's an at-sign (@) in the command name \renewcommand{\@maketitle}{   \parindent=0pt% don't indent paragraphs in the title block   \begin{center}     \MakeUppercase{\Large \bf \@title}     \HRule%   \end{center}%   \textit{\@author \hfill \@date}   \par } \makeatother% resets the meaning of the at-sign (@)  \title{Statement of Purpose} \author{name} \date{Ph.D. Applicant}  \begin{document}  \maketitle% prints the title block  Emergency medicine has always been a passion of mine\ldots  \end{document}
87448
I'm wondering if there are some macros for annotating listings as below easily. They are primarily used in books from Manning.    Solution  For anyone who's interested, this is my macro I finally got:      \newcommand*{\AddNote}[5]{%     \begin{tikzpicture}[overlay, remember picture]     \coordinate (x) at (#2,0);     \coordinate (a) at ($(x)!(#1.north)!($(x)+(0,1)$)$);     \coordinate (b) at ($(a)+(0.8,0)$);     \coordinate (c) at ($(b)+(0,#3)$);     \draw [open triangle 45-] (a) -- (b) -- (c);     \node[#5] at (c) {\bf\sffamily\smaller#4};     \end{tikzpicture}%     }   Usage is: \AddNote{linemarker}{x-offset}{y-offset}{text}{style}
72450
With the goal of making the latex source easier to parse, I was wondering if one could (locally or globally) disable the latex default behaviour of creating a new paragraph when it encounters an empty line.  Obviously, I can always just put a % on empty lines when I don't want a paragraph. Nevertheless, I was wondering if there is a different solution.  Finally, I would also like to know if such an alternative solution would be considered good form or not.
30907
Some lines in my document are italicized, with no spaces between words, and continue after the edge of the document. The rest of the document is fine. Here is the beginning:  \documentclass[runningheads]{llncs} \usepackage{graphicx} \usepackage{float} \usepackage{tikz} \usetikzlibrary{arrows} \usepackage[explicit]{titlesec} \usepackage{amsmath,amssymb} % define this before the line numbering. \usepackage[width=122mm,left=12mm,paperwidth=146mm,height=193mm,top=12mm,paperheight=217mm]{geometry} \begin{document} \pagestyle{headings}   And then, for example:   \subsection{b)}\\  \\  Given that h(n) is admissible, the algorithm will be optimal for:\\  f(n)=(2-w)[g(n) + w/(2-w)h(n)]  \\  when w/(2-w) \leq 1, that is when w \leq 1 the algorithm is optimal.\\ It        behaves like an A* algorithm following the heuristic:  f(n) = g(n) + w/(2-w) h(n)   And below is the result:    Any help is appreciated!
106170
I have been called out for using blockquotes for the wrong purpose. For quick reference, here's the blockquote in question (taken from ):        And this is :     "That paragraph […] is rendered in quote blocks. That means it's a quote. Where did you get the content from? You should cite your sources. If it's not a quote, it should not be in quote blocks. (If you want Markdown to be extended with more formatting options, request them on Meta.) Thanks."   I personally agree with the commenter. Just like the semantics of HTML tables have been "abused" over and over again for purely aesthetic purposes, so have I abused blockquotes. (I wanted the answer summary to be visually offset / stand out from the remainder of my post.) The problem is, Stack Exchange's Markdown doesn't offer any other formatting option (apart from code blocks) for indenting some text or putting it in a "box", so blockquotes are what I have been frequently resorting to for this purpose.  On the other hand, the Markdown help doesn't explicitly forbid the use of blockquotes for text other than longer citations. In fact, while it explains how blockquotes can be produced, it doesn't state at all when and for what blockquotes should be used:    (The same goes for many other formatting elements, btw.)  I can only guess that this is because the meaning of blockquotes was assumed to be obvious; and because one of the (if not the) first Stack Exchange sites (Stack Overflow) was directed at programmer types, who are perhaps expected to be familiar with HTML (which also has something called &lt;blockquote&gt; ).  Therefore I am asking:   Is there a demand for a formatting element that would be appropriate whenever paragraphs of text should somehow stand out from the main text flow; be it for prologues, preambles, asides / side notes, remarks, postscripts, footnotes, etc.? And if so, is this demand big enough that Stack Exchange's Markdown should have a formatting option for it? And if so, is the existing blockquote formatting (&gt;) appropriate, or any other existing formatting, or does something new have to be added?   In either case, I believe the Markdown editing help should be more explicit about the intended semantics of blockquotes (and possibly of other formatting elements). If blockquotes have a clearly defined use case, then it should be stated explicitly. If not, then the help text should include something along these lines:     You can use &gt; to put one or more text paragraphs in a block that visually stands out from the main flow of text.     Examples of how blockquotes are being used:  Below are some examples of how blockquotes are being used in the wild.  First, let me apologize for using so much content that I posted myself. I don't want to advertise my own posts; it was simply a quick way for me to locate some examples. If anyone has other examples, feel free to edit (and make me look less biased ;).  Also, take note that I am not judging the following examples; you may find that some demonstrate the "intended" / "proper use" of blockquotes, while others may be examples of an "abuse" of blockquote.   Actual quotations / citations (perhaps the intended implicit meaning of blockquotes), e.g. , , and :            (Note that some of these include only the quoted text, while others also include  a full or partial bibliographical reference.) The Stack Exchange engine itself uses blocksquotes to mark duplicate questions as such, and link to previous questions, e.g. :    As a meta-statement about the post itself, e.g.  and :       For side notes, remarks, etc. that aren't considered as important or relevant to the post as the non-quoted text, e.g. :   Similar to the above, for postscripts (P.S.), i.e. text that was added to the post later on; e.g. :   To cite the source of a non-blockquoted blockquote, e.g. :
66872
i would like to add some colored-lines to my documentation and i while searching through the www i found this post here:   According to this, i would ask you, how i could add these lines to my headline and footline so it would look like the painted version below...  Image removed after solved...  My layout file looks like this:      % Seitenränder ----------------------------------------------------------------- \setlength{\topskip}{\ht\strutbox} % behebt Warnung von geometry \geometry{a4paper,left=20mm,right=20mm,top=25mm,bottom=35mm}  \usepackage[     automark, % Kapitelangaben in Kopfzeile automatisch erstellen     headsepline, % Trennlinie unter Kopfzeile     ilines % Trennlinie linksbündig ausrichten ]{scrpage2}  % Kopf- und Fußzeilen ---------------------------------------------------------- \pagestyle{scrheadings} \renewcommand{\titlepagestyle}{scrheadings} \clearscrheadfoot  % Kopfzeile \renewcommand{\headfont}{\normalfont} % Schriftform der Kopfzeile \ihead{\large{\textsc{\titel}}\\ \small{\untertitel} \\[2ex] \textit{\headmark}} \chead{} \ohead{\includegraphics[scale=0.4]{\logo}} \setlength{\headheight}{15mm} % Höhe der Kopfzeile %\setheadwidth[0pt]{textwithmarginpar} % Kopfzeile über den Text hinaus verbreitern (falls Logo den Text überdeckt)   % Fußzeile \ifoot{\copyright\ \autor} \cfoot{} \ofoot{\pagemark}  \onehalfspacing % Zeilenabstand 1,5 Zeilen \frenchspacing % erzeugt ein wenig mehr Platz hinter einem Punkt   % Schusterjungen vermeiden \clubpenalty = 10000 \widowpenalty = 10000  \displaywidowpenalty = 10000  % Quellcode-Ausgabe formatieren \lstset{numbers=left, numberstyle=\tiny, numbersep=5pt, breaklines=true} \lstset{emph={square}, emphstyle=\color{red}, emph={[2]root,base}, emphstyle={[2]\color{blue}}}  \counterwithout{footnote}{section} % Fußnoten fortlaufend durchnummerieren \setcounter{tocdepth}{\subsubsectionlevel} % im Inhaltsverzeichnis werden die Kapitel bis zum Level der subsubsection übernommen \setcounter{secnumdepth}{\subsubsectionlevel} % Kapitel bis zum Level der subsubsection werden nummeriert  % Aufzählungen anpassen \renewcommand{\labelenumi}{\arabic{enumi}.} \renewcommand{\labelenumii}{\arabic{enumi}.\arabic{enumii}.} \renewcommand{\labelenumiii}{\arabic{enumi}.\arabic{enumii}.\arabic{enumiii}}  % Tabellenfärbung: \definecolor{heading}{rgb}{0.64,0.78,0.86} \definecolor{odd}{rgb}{0.9,0.9,0.9} \definecolor{ww-lightblue}{RGB}{73, 111, 185} \definecolor{ww-darkblue}{RGB}{22, 59, 124} \definecolor{ww-orange}{RGB}{248, 147, 36}
94821
I have been using LaTeX for standard things like letters and scientific reports. I recently came to visit my grandmother who writes some poetry and told her I could make a nice pdf from her handwritten verses -- which I start to regret :P... I used the package verse and it is going all right, but in some specific poems, she wants a very 'exotic'  kind of positioning. She wants some lines to start exactly where the former line finishes like in this example:    Do you know how I could, for instance, write a magic command \magicom{} that would generate the text above when used like:  This is some\\ \magicom{}text I would\\ like to\\ \magicom{}format\\ How can I do this with\\ \magicom{}LaTeX?
11664
I am just curious that the following format looks good to you or not? The preamble I used is just   \documentclass[12pt,a4paper]{article}  \usepackage{amsmath} \usepackage{amsthm} \usepackage{amssymb}   I don't feel it's so good because the first paragraph has no indent but the second does. If the first paragraph is much longer, than it's fine. But if not, it looks strange. Should I leave it, or you have suggestions for this?
96789
Word allows for all kinds of font formatting:    The above example combines strike-through/strike-out (like this) and underlining. I'd like to be able to do the same, but neither  nor  allows for this in a convenient way.   ulem:    \documentclass{article} \usepackage[a6paper,showframe]{geometry}% Just for this example \usepackage{ulem} \begin{document} Lorem ipsum dolor sit amet, \sout{consectetur adipiscing elit.  Praesent} in nisi magna. Mauris \sout{auctor gravida} fermentum.  Proin enim \uline{massa, \sout{\textbf{lobortis in} ligula} vel, convallis} fermentum  nulla. \uline{Nam in mattis nulla}. Vestibulum vel \uline{auctor orci.  Praesent \textit{\textbf{ornare, eros} ac} euismod} congue, turpis est facilisis  nisi, a sollicitudin massa lectus imperdiet tellus. Duis at  tempor velit. \sout{Nulla \uline{gravida}, dolor in cursus}.  \end{document}  soul:  The  explicitly states that "nesting soul commands don't work":    As such, the following example does not compile without errors:  \documentclass{article} \usepackage[a6paper,showframe]{geometry}% Just for this example \usepackage{soul} \begin{document} Lorem ipsum dolor sit amet, \st{consectetur adipiscing elit.  Praesent} in nisi magna. Mauris \st{auctor gravida} fermentum.  Proin enim \ul{massa, \st{\textbf{lobortis in} ligula} vel, convallis} fermentum  nulla. \ul{Nam in mattis nulla}. Vestibulum vel \ul{auctor orci.  Praesent \textit{\textbf{ornare, eros} ac} euismod} congue, turpis est facilisis  nisi, a sollicitudin massa lectus imperdiet tellus. Duis at  tempor velit. \st{Nulla \ul{gravida}, dolor in cursus}.  \end{document}    Ideally I'd like to be able to use these font "effect" macros interchangeably: strike-out inside underline, or underline inside strike-out with no impact on the use of fonts (like italic or bold). Here's the output from Word:    (See also the followup question: )
96062
You can have  code blocks   that can be instead shown as inline code. Similarly, you can have     block quotes   However, you cannot have "inline quotes". Often, I find I want to add a quote inline, so as to not disrupt the flow of text. Is it possible for this to be added as a feature, or are there reasons as to why it hasn't been already (such as others not sharing the same view as myself)?
116324
I'm trying to get \xspace to add a whitespace before “ if it is an auto quote using csquotes. Here is an MWE:  \documentclass{minimal}  \usepackage[autostyle,german=guillemets]{csquotes}  \usepackage{xspace}   \MakeAutoQuote{(}{)}  \def\test{test\xspace}  \begin{document}  Hello, \test (after command.)  \end{document}   It doesn't do what I want, no matter how hard I try... what am I missing?  EDIT: more info: in the meantime I figured that even this  \def\qq{\csq@oqopen} Hello, \test \qq after command)   will not work. Something is going on here that makes \xspace think it must not add a space. But I am lost as to why.
68986
The question  is my question too, but the answer points to a package upquote that affects the entire document. I need to display an apostrophe (U+0027) only a couple of times within the document. Otherwise I would like the general conversion to quote to take place.  \documentclass{article} \usepackage{fontspec, xunicode, xltxtra} \defaultfontfeatures{Mapping = tex-text}  \begin{document} \noindent I would like an apostrophe to appear in the word ap'ple (U+0027), but a right quotation mark (U+2019) when I quote the word `orange'. \end{document}
52362
Suppose the following chunk of code:  lines = text.split`\n`   Not relevant, but it is valid ES6 code  My question is: How to write it inside one comment? When I use backticks around content it displays the content formatted as code. But what if there are backticks inside this content?
41041
I often format path names with \texttt which can be very long. Usually Tex will not break this text. The line will just create a hbox overflow. It looks like this:  ................ ...C:\documents and settings ................ ................ ................ ................ ................ ................ ................   How do I get Tex to create a line break?
76807
Intro  I'm working on a lightweight package that allows you to put any content (typically LaTeX code) in an environment, then use that content multiple times, each time scanned separately, so you can use it both as verbatim output and interpreted as LaTeX.  Its main purpose is to typeset LaTeX code and its 'result' side-by-side; useful for documenting TeX packages without having to copy/paste code. But it has other purposes as well.  After experimenting with \scantokens until I gave up in tears, I arrived at the filecontents environment, which almost solved my problem singlehandedly!  The Problem  The problem is, when reintroducing filecontented code through \input, LaTeX adds an implicit newline at the end, which translates to whitespace that I can't seem to get rid of.  I've seen many semi-related questions floating around, with answers employing techniques like:   reading a file line-by-line, using \everyeof in some clever way, playing with \endlinechar or using packages such as catchfile   but none of them provides a clear answer to the following question:  The Question  How can I \input a file without getting the implicit newline?  Minimal Working Example  \documentclass[margin=1mm]{standalone}  \usepackage{filecontents}  \begin{filecontents*}{tmp.tex}     \LaTeX{}\end{filecontents*}  \begin{document}     \fbox{\input{tmp.tex}} \end{document}     Note the extra whitespace to the right of the box.  Note also that I'm definitely not adding any explicit whitespace. Even a manually produced file (so, not using filecontents) with no newlines at all exhibits the same problem.
34568
I am currently using \underline{...} to underline text.  However, I want the underline to be closer to the letters (as of now, there's too much whitespace between the letters and the line).  Is there a simple way to do this?