# Tag Info

2

No, \\ in normal LR mode will not switch to vertical mode, nor does \newline. In normal LR mode, the definition of \newline is \@normalcr\relax; the \relax is meant to avoid a subsequent * to be interpreted as a *-variant. The definition of \\ is essentially \@normalcr, which however looks for a following * and an optional argument. If the optional ...

2

I would use {\tiny \noindent\rule{\textwidth}{\heavyrulewidth} \nopagebreak Here is some text. } where both blank lines are needed (or could be \par which is the same thing). The first blank line gets into vertical mode so that you can add the page breaking penalty (actually the blank line here isn't strictly necessary as \nopagebreak in vertical mode ...

1

I've found that putting the following in the preamble accomplishes it: \setlength{\parindent}{0in}

7

May be simpler just write: \noindent\rlap{...}\indent Or ... \noindent\makebox[1cm][l]{... } Or automatically: \everypar{\hspace{-1cm}\rlap{...}\indent} MWE: \documentclass{article} \usepackage{lipsum} \usepackage{fourier-orns} \parindent1cm\parskip1em \begin{document} \noindent\rlap{\decotwo}\indent\lipsum[2] % or ... ...

5

here's another method: starting from vertical mode, \leavevmode\kern-\parindent \rlap{<fleuron>}% \kern\parindent\relax the mechanism is: start the paragraph; move left by the amount of the \parindent; in a zero-width box, insert the fleuron; move right by the amount of the \parindent. (if you break this into several lines, as done here, don't ...

8


4

You can fudge this using list environment (this is how quote etc work): \documentclass{book} \usepackage{lipsum} \newenvironment{dedication}{\cleardoublepage\vspace*{\stretch{3}}% \list{}{}\item\relax\textbf{Dedication}\newline}% {\endlist\vspace*{\stretch{1}}\clearpage} \begin{document} \begin{dedication} \lipsum[1] \end{dedication} ...

6

Easy to do with \newgeometry and \restoregeometry from the geometry package: \documentclass[a4paper,11pt]{book} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage[showframe, nomarginpar]{geometry} \usepackage{lipsum} \begin{document} \lipsum[1] \cleardoublepage \newgeometry{left=6cm,right=3.8cm} \vspace*{\stretch{3}} ...

3

Use the indentfirst for indent the first paragraph after a chapter or section title. Set \parskip to fix the space between paragraphs. Better that some fixed length like 2ex use a stretchable glue like 2ex plus .2ex minus .1ex to allow some stretch when needed. Experiment to find the best results for you. Set \parindent (note that this lenght is not ...

6

In LaTeX the \par command gets redefined several times during a run over a document. For example, inside a tabular it does nothing: an input such as \begin{tabular}{l} \ttfamily\meaning\par \end{tabular} would print macro:->. (after the colon the parameter text is shown; after -> up to the period the replacement text is shown). This way, users ...

1

The easiest way to find what a command does is to create a minimal and run: \makeatletter\ttfamily \meaning\par \\ \meaning\@@par \\ \meaning\p@ As you go along studying the LaTeX2e kernel you can grow this minimal with notes etc. The best study source for coding LaTeX2e style packages and macros is the source itself, as well as packages. All these ...

1

I'll let someone else post an answer involving \tikzmark. Regarding how the TikZ manual suggests to do this. At the points that you want to connect, you'll use the following code \tikz[remember picture] \node (<node name>) {}; where <node name> is a name of your choice. You should use different names for each such node. To connect the two ...

3

The parskip package aims to allow setting for a non zero \parskip with the standard classes while reducing the number of places unwanted space appears. Alternatively more extensive classes such as the koma classes have design options incorporating non zero parskip. \documentclass[parskip=half]... for example. Using \\ at the end of a paragraph does not ...

0

Next option would be to add \clearpage after the figure, it will put them in the right order I guess, but on the more pages (depends on the the size of the paragraphs).

2

You have added \flushleft that disables justification. Hence remove it. \documentclass{book} \usepackage{ragged2e} \begin{document} \pagestyle{empty} %No headings for the first pages. \tableofcontents \pagestyle{plain} %\flushleft %%<- remove \clearpage \chapter*{Dedication} \addcontentsline{toc}{chapter}{Dedication} %\begin{Dedication} ...

2

Hard to guess what output you want, three alternatives: \documentclass{article} \begin{document} \begin{description} \item[In nature,] clustering is a mechanism for solving diversity and complexity things from simple and basic elements. In IT field: is a good concept and technique to use existing component hardware or software to accomplish ...

0

After reading the discussion between you and David Carlisle, I realize now you'd like to adjust the paragraph heading (also called title—but I didn't expect that from a new user, sorry ;) You can use the titlesec package for this. Code Adjust the .5em to your liking. I used em as the unit because it is a horizontal unit designed for text. You can even ...

1

In book paragraph is defined by \newcommand\paragraph{\@startsection{paragraph}{4}{\z@}% {3.25ex \@plus1ex \@minus.2ex}% {-1em}% {\normalfont\normalsize\bfseries}} the space after the heading is 1em specified by the 5th argument to \@startsection ...

0

Here I use a macro approach, \connect{text}{lines}, where lines is the multiple of baselineskip to the connecting line. It can be a non-integer if there are added vertical spaces to contend with (e.g., \topskip and such). Because the decoration is employed using the tabto package, the \connect{}{} macro can be issued at any place on the starting line of ...

1

With results similar to Gonzalo's answer but made with tcolorbox. \documentclass{article} \usepackage{lipsum}% just to generate text for the example \usepackage[most]{tcolorbox} \newtcolorbox{tcbsiderules}[1][]{blanker, breakable, left=3mm, right=3mm, top=1mm, bottom=1mm, borderline vertical={1pt}{0pt}{black}, before upper=\indent, ...

3

tikzmark could be one option: \documentclass{article} \usepackage{lipsum} \usepackage{tikz} \usetikzlibrary{tikzmark} \begin{document} \begin{description} \item[\tikzmark{a}Blabla text here:] \lipsum[1] \item[\tikzmark{b}Blabla text here:] \lipsum[1] \end{description} \tikz[remember picture,<->] \draw[overlay] ([yshift=1ex]pic cs:a) --++(-0.5,0) |- ...

0

Just leave a blank line after the environment, if you want indentation: \documentclass{article} \usepackage{listings,lipsum} \lstnewenvironment{mycode}{}{} \begin{document} \lipsum[1] \begin{mycode} \def\cmd#1{\cs{\expandafter\cmd@to@cs\string#1}} \def\cmd@to@cs#1#2{\char\number#2\relax} \DeclareRobustCommand\cs[1]{\texttt{\char\\#1}} \end{mycode} ...

0

Use etoolbox and its \AfterEndEnvironment hook to insert \par \documentclass{article} \usepackage{listings,lipsum} \lstnewenvironment{mycode}{}{} \usepackage{etoolbox} \AfterEndEnvironment{mycode}{\par} \begin{document} \lipsum[1] \begin{mycode} \def\cmd#1{\cs{\expandafter\cmd@to@cs\string#1}} \def\cmd@to@cs#1#2{\char\number`#2\relax} ...

0

I too refer you to the answer I gave to a previous similar question: use the articoletteracdp documentclass, that comes with \sections and \paragraphs already defined.

1

The image you show is not generated by posted code, in article class \paragraph is an inline heading so produces Para Blah blah The word Para is not indented so it is hard to guess what effect you intended \noindent to have. Note that \paragraph is a section head and should only be used in the sequence \section, \subsection, \subsubsection, \paragraph. ...

3

The rule used in \leaders: \leaders \hrule \vskip.4pt is removable like another space on the page breaks. You can define somethig like this: \raggedbottom \newcount\quotnumber \def\quotation{\par\global\advance\quotnumber by1 \bigskip \ifnum\qoutnumber>1 \leaders \hrule \vskip.4pt \bigskip \fi \vbox } The introduction text. \quotation{text ...

Top 50 recent answers are included