# Tag Info

8

You are not missing anything; apparently TikZ adds some padding equal to the line width (you can see this by using different values for line width in your \draw). You can prevent the undesired space using the overlay option (either globally for the whole tikzpicture, or locally for just the \draw): \documentclass{article} \usepackage[a4paper, showframe, ...

4

I made the sidenotes package for this purpose. Here is an example. \documentclass{article} \usepackage{sidenotes} \usepackage{lipsum} % provides the dummy text \usepackage{mwe} % provides the example image \begin{document} \lipsum[1] \begin{marginfigure}% \includegraphics[width=\marginparwidth]{example-image-a}% \caption{This is in the margin.}% ...

4

You're setting up the wrong key for geometry. The keys you want are paperwidth and paperheight. However, I do not see the point in first specifying [b5paper] to the class, when you later change the size to something else in geometry. The option b5paper has no effect and only makes your code unclear.

4

Add \makeatletter \def\@classoptionslist{draft} \makeatother before the \documentclass line (while canceling out the explicit 'draft' option from your class declaration) in the main.tex to make sure that the draft option is active also in your subfile text.tex. The following one-liner is equivalent: ...

4

Simply use: \usepackage[margin=2cm]{geometry} in your preamble. The geometry package will calculate all other parameters for you. You should never modify \hoffset and \voffset without serious reasons.

3

As @AlanMunn has already noted in a comment, you need to use a font encoding other than OT1 (TeX's original font encoding, and still the default for most LaTeX document classes). Assuming you need "only" glyphs that occur in Western and Central European languages, you should probably use the T1 font encoding. Assuming further that one ore more of the long ...

2

You can't use \leftmargin, as geometry mentions in the users' manual: Each margin is measured from the corresponding edge of a paper. For example, left margin (inner margin) means a horizontal distance between the left (inner) edge of the paper and that of the total body. Therefore the left and top margins defined in geometry are different from ...

2

There are not random results but inconsistent settings. Please use the option showframe in the package geometry and see the log file to understand what happen with your settings. Take into account that top margin in Lyx should be 15 mm plus headheight plus headsep and that header text should be enough small to fit in the headheight, otherwise LaTeX will ...

2

Instead of manual spacing, one easy way to align the boxes is to use a tabular; the inter-column space can be controlled with \tabcolsep (default=6pt); another option is to use \phantom, as in the second example code below. You can use the optional argument for \\ as in \\[1cm] to increase the vertical separation between boxes. The code: ...

2

If the figure is inserted with \includegraphics, use \makebox[\linewidth]{\includegraphics{myfigure}. It will overflow equally on both sides, but the caption will be limited to the line width. You also may use \includegraphics[width=\linewidth]{myfigure}, in order to reduce the size of the figure.

2

tikz claims it is 25mm: \documentclass[a4paper]{article} \usepackage[showframe, paper = a4paper, tmargin = 25mm]{geometry} \usepackage{lipsum,tikz} \begin{document} \tikz[overlay,remember picture] \draw[<->,red] (current page.north) --++(0,-25mm)node[midway]{25mm}; \lipsum \end{document}

1

Let's see. The first line of your output is 6.94444pt high (TeX told me so, it's the largest height of the characters in the line, which is ‘d’), which is preceded by glue deriving from \topskip in the amount of 3.05556pt, because 6.94444 + 3.05556 = 10 and 10pt is the standard value of \topskip for a ten point size document. The distance from the ...

1

Set leftmargin to 0pt so nothing can fit there and the new line is forced: \documentclass{article} \usepackage{enumitem} %\setlist[description]{style=nextline,leftmargin=0pt} % Optional Global Setup \begin{document} \begin{description}[style=nextline,leftmargin=0pt] % Local Setup \item [Green] The color green. \item [Red] The color red. \item ...

1

The class has some code to ensure a two inch space, which is added before the chapter title is typeset. %% Creating a 2 inch margin \newlength{\BigLength}% \setlength{\BigLength}{0pt}% \newcommand{\BigMargin}{\hspace*{1in}\normalfont\normalsize% \settoheight{\QZ@TempLength}{()}% \vspace*{-\baselineskip}\vspace*{-\topskip}\vspace*{1in}% ...

1

You should add the option natbibapa when loading the apacite package. \RequirePackage{filecontents} \begin{filecontents}{mwe_bib.bib} @book{mweauth, Author={Firstname Longlastname}, Title={Book Title}, Publisher={Publishing Company}, Address={City, State}, Year={2015} } \end{filecontents} \documentclass[11pt]{article} ...

1

hyphenation can be suppressed more directly by setting \hyphenpenalty=10000 to suppress ordinary hyphenation, and \exhyphenpenalty=10000 to prohibit line breaks at explicit hyphens. if un-hyphenated words now extend out into the margins, you probably need to increase the "tolerance" and allow more stretch between words; \tolerance=1000 \emergencystretch=2em ...

1


1

You should specify top together with the includehead setting: \documentclass{article} \usepackage[showframe,includehead,top=5mm]{geometry} \usepackage{lipsum, fancyhdr} \pagestyle{fancy} \fancyhf{} \fancyhead[R]{A header plus the page number: \thepage} \begin{document} \lipsum \end{document} From the geometry user's manual, Figure 2 displays the ...

1

The addition of \noindent is sufficient to start the arrow from the north west corner of the text area, as this illustration demonstrates: If you move it further left, it will no longer be within the text area, but will begin in the left margin. I've also tidied up your code a little, although not that much: \documentclass[12pt]{report} ...

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