# Tag Info

32

The tex.web file contains 24985 lines at the moment. This is in the literate-programming style, so has a lot of what you might call comments. When passed through tangle (e.g. tangle tex.web), you get Pascal code, but this is comparable to the code produced by a JavaScript minifier: statements are all jammed together on the line and there are line breaks at ...

23

Adding \usepackage[latin]{babel} will also help in your case. \documentclass[12pt,a5paper,twoside]{book} \usepackage{ebgaramond} % main font \usepackage[utf8]{inputenc} \usepackage[latin]{babel} \usepackage{blindtext} \usepackage{xcolor} %%%%%%%%%%% MARGIN %%%%%%%%% \usepackage[left=15mm,right=15mm,top=20mm,bottom=20mm,headheight=0mm,]{geometry} \...

22

The solution here is usually to enforce the hyphenation of the faulty words. Since you are using a blind text, some words are not properly hyphenated. In your case, adding \hyphenation{Do-nec} to the preamble solves the problem (I don't know if that's the correct hyphenation, though). \documentclass[12pt,a5paper,twoside]{book} \usepackage{ebgaramond} % ...

14


14

The line widths thin, thick, etc. are defined liked this (taken from here): \tikzset{ ultra thin/.style= {line width=0.1pt}, very thin/.style= {line width=0.2pt}, thin/.style= {line width=0.4pt}, semithick/.style= {line width=0.6pt}, thick/.style= {line width=0.8pt}, very thick/.style= {line width=1.2pt}, ultra thick/...

11

Yes, it's possible: \documentclass{article} \usepackage{amsmath,array} \begin{document} \begin{equation*} \renewcommand{\arraystretch}{1.2} \setlength{\arraycolsep}{0pt} \begin{array}{ >{\displaystyle}r % right aligned >{\displaystyle{}}l % left aligned @{\hspace{4em}} % spacing | % vertical rule @{\hspace{2em}} ...

10

To supplement ShreevatsaR excellent answer, here is the beginning of tex.p, the “tangled” form of tex.web {4:}{9:}{$C-,A+,D-}{[$C+,D+]}{:9}program TEX;label{6:}1,9998,9999; {:6}const{11:}memmax=30000;memmin=0;bufsize=500;errorline=72; halferrorline=42;maxprintline=79;stacksize=200;maxinopen=6;fontmax=75; fontmemsize=20000;paramsize=60;nestsize=40;maxstrings=...

9

Two approaches are demonstrated here. Both repeatedly use the preaction key with different line widths and colors to draw the pipe (and also the flange). The first approach uses the markings decoration as a postaction to position the flanges. The second uses the show path construction decoration to position flanges at the beginning and ends of lineto and ...

9

\documentclass{article} \usepackage{lipsum} \begin{document} \noindent\mbox{}\hfill centered stuff\hfill\mbox{}\makebox[0pt][r]{right} \lipsum[1] \end{document}

9


9

Using \pic definition. pics/lines/.style args={#1-#2-#3}{ Our pic command has three parameters. First parameter (#1) : x coordinate. Second parameter (#2) : Magnitude of vector. Third parameter (#3) : If this parameter is equal to 1001 or more one, the label of vector is x_max else is equal to 0, the label is x_min. For normal labeling, give ...

8

There is a canonical TeX command: \leaders https://www.tug.org/utilities/plain/cseq.html#leaders-rp For example \hbox to 5cm{\leaders\hbox to 10pt{\hss . \hss}\hfil} UPD: example explanation \hbox to 5cm{} creates horizontal box. Here 5cm is the total length of the point line \leaders is a command to create leaders. Leaders can create a horizontal or ...

8

A solution with "plain tikz": \documentclass{article} \usepackage{tikz} \usetikzlibrary{backgrounds,positioning} \usepackage{float} \usepackage{showframe} \begin{document} \begin{figure}[H] \centering \begin{minipage}[t]{0.45\textwidth} \begin{tikzpicture}[scale=0.6] \draw (-4,-3)rectangle (6,3); \fill[gray,...

7

What you are probably looking for is \dotfill. Like \hfill, it spreads as much as possible, but inserting dots instead of white space. If you lock \dotfill into a box of fixed width, you get dots of a specific width. The \fillin command takes this width as an optional argument; if it's missing, the width defaults to 3cm. \documentclass{article} \usepackage{...

7

The following example allows line breaks between digit groups by smuggling a line break penalty in group-separator. Also the surrounding \hbox is removed from the text mode number is removed, otherwise the penalties would not have an effect inside a unbreakable box. \documentclass{article} \usepackage{showframe} \usepackage{siunitx} \newcommand*{\...

7

You can use the filler mechanism (a wrapper for \leaders command in TeX) which repeats a symbol until the end of the line is reached. \usesymbols[mvs] \definefiller [Cutline] [ left={\symbol[martinvogel 2][CutLeft]}, right={\symbol[martinvogel 2][CutRight]}, symbol={\symbol[martinvogel 2][CutLine]}, method=broad, width=0pt] \starttext \...

7

That happens because your (1), (2), (3), etc. nodes are the labels, not the points. Here a possible solution using \coordinate: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{calc} \begin{document} \begin{tikzpicture} \coordinate (1) at (1,2); \coordinate (2) at (4, 1.5); \coordinate (3) at (5,0); \coordinate (4) at (...

7

You can see the explanation why it is not working in the Heiko Oberdiek's answer. To overcome this you can replace node[position] (n) {n} by coordinate[label=position:n] (n). Here is the full code: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{calc} \begin{document} \begin{tikzpicture} \path[draw] (0,0) coordinate[label=left:6] (6) ...

7

A variant which saves having to guess box widths: \documentclass{article} \usepackage[showframe]{geometry} \begin{document} \noindent \makebox[\linewidth]{\hfill \fbox{this one is centred}\hfill \llap{and that flushright}} \end{document}

7

pics are very powerful tikz components, because they accept input arguments besides being treated the same way as nodes (small differences though). \documentclass[tikz,border=2pt]{standalone} \begin{document} \tikzset{ pics/numcirc/.style args={#1/#2}{ code = { \draw circle (1); \foreach \i in {1,...,#1} \draw (90+\i*...

7


6

You need a font with fleurons. Your examples seem to have been made with fourier-orns. Here are two propositions, a text-wide fancy line, and a short version, with one argument, the length of the line on both sides of the fleuron box. It would be easy to add colour. \documentclass{article} \usepackage{fourier, fourier-orns} \usepackage{lipsum} \newcommand\...

6

For example: \documentclass{article} \begin{document} \hrule % show line width \noindent\rlap{(H)}\hfill some text\hfill\null\par \hrule \end{document} \noindent starts a new paragraph without indentation of the first line. \rlap prints its argument to the right. The middle text is centered by wrapping it in \hfill...\hfill. The \null at the end of ...

6

Here's a fully LaTeX compliant solution. \documentclass{article} \usepackage{showframe} % just for the example \newcommand{\lcrline}[3]{% \par % we want to be on a line by itself \noindent % no indent \makebox[\linewidth][s]{% spread to the line width \makebox[0pt][l]{#1}% text at left \hfill \makebox[0pt][c]{#2}% text at center \...

6

If you want to use vertical rules in a tabular environment, don't use the rule-drawing macros of the booktabs package. If you do have to use vertical rules and hence can't use \toprule, \midrule, etc but still want the well-spaced appearance of horizontal rules that the booktabs macros provide, I suggest you resort to (typographic) struts. That way, the ...

6

to my taste the the following table is more nice: \documentclass{article} \usepackage{booktabs} \begin{document} \begin{table}[ht] \centering \caption{Caption for the table} \label{tab:table1} \begin{tabular}{ l r } \toprule Corpus & Tokens \\ \midrule a & b \\ d & e ...

6

That doesn't look like a varying width rule, just two rules: \documentclass{article} \begin{document} \noindent\rule{\textwidth}{.5pt} \nointerlineskip \noindent\rule{3cm}{5pt} \end{document} For example using the section format mentioned in comments: \documentclass{article} \usepackage{titlesec} \titleformat{\section} {\normalfont\Large\bfseries}{\...

Only top voted, non community-wiki answers of a minimum length are eligible