Tag Info

5

\leftmargin is the wrong length. That is used for lists. You either need to calculate it from \oddsidemargin, or use the macro from geometry: \documentclass{article} \usepackage[letterpaper,margin=1in,footskip=0.25in]{geometry} \newlength{\oneinch} \setlength{\oneinch}{1in} \begin{document} \the\dimexpr1in+\oddsidemargin\relax \makeatletter ...

5

My main suggestion is to take the factor 10^4 outside the matrix. That way, the width of first five columns can be made reduced dramatically, while the width of the final two columns doesn't increase much on net. Using a bmatrix* environment and reducing the value of the \arraycolsep helps too. \documentclass[12pt,a4paper]{article} \pagestyle{myheadings} ...

4

Let's create a bunch of random text: \documentclass{article} \usepackage[margin=15mm,paper=a6paper]{geometry} \usepackage{lipsum} \begin{document} \sloppy\lipsum[1-50] \end{document} We'll call this work-of-art lipsum50.pdf. It consist of 25 pages of pure awesomeness, all of which is laid out on A6 paper with a 15mm margin. This should replicate your ...

3

While Christian offers a better solution, you can start with \documentclass{article} \usepackage[most]{tcolorbox} \usepackage{lipsum} \begin{document} \begin{tcolorbox}[ sharp corners, boxrule=2mm, notitle, colback=white, colframe=blue, coltitle=white, fonttitle=\bfseries] This is a \textbf{tcolorbox}. \tcbsubtitle[before ...

3

The macro \centerline comes from Plain TeX and its behavior is exactly what you see: it centers without wrapping text and without respecting the margin. The macro is not supported in LaTeX; it exists just for historical reasons. If one knows how to properly use it, well; otherwise, it's better to leave it alone. Perhaps you are looking for \begin{center} ...

3

Content can be added during page ship-out using eso-pic. The following minimal example adds a 1cm rule as required for 5 pages starting from some specific place inside the document: \documentclass[twoside]{article} \usepackage{eso-pic} \newcounter{blackbar} \usepackage{lipsum} \begin{document} \lipsum[1-50] \AddToShipoutPictureBG{% Add content to ...

2

This solution uses geometry to get more sensible page margins, booktabs for nicer rules, makecell to rotate some headers and ensure consistent formatting. As it is, I think the information could be presented much more usefully and concisely. Perhaps not all figures are 1 in your real data, but that is likely to affect the layout of the table, too, unless ...

2

The default of some (or many) classes is twoside, i.e. changing the margins for verso and recto pages (alternating). Most of those classes provide a oneside option too, which switches this feature off! amsart article book memoir have twoside by default, whereas report is oneside by default. \documentclass[oneside]{amsart} \usepackage{showframe} ...

2

The problem is in your usage of \quotation. The macro \quotation exists, but it should never be used in the document body; it should only be used in definitions of new environments. The right form is \begin{quotation} The Internet of Things (IoT) is the network [...] and smart cities.~\cite{Wikipedia_IoT} \end{quotation} Try it and your problems will ...

2

Here is a solution using siunitx and ncccmath for its \medmath command, which reduces the size of \displaystyle by about 20 %: \documentclass[12pt,a4paper]{article} \pagestyle{myheadings} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} %code \usepackage{uarial} % for \renewcommand{\familydefault}{\sfdefault} %arial font \usepackage[brazilian]{babel} ...

2

An answer to the first version of the question. Class standalone \documentclass{standalone} \begin{document} lorem ipsum \end{document} Full page: Settings the margins to zero \usepackage[margin=0pt]{geometry} Cropping the PDF file Or the PDF file can be post-processed with pdfcrop to remove the outer margins.

2

2

Use enumitem with an appropriate leftmargin: \documentclass{llncs} \usepackage{enumitem} \begin{document} Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. ...

2

One solution is with the enumitem package, using the [align=left] argument. \documentclass{article} \usepackage[margin=1in]{geometry} \usepackage{enumitem} \usepackage{lipsum} \begin{document} \lipsum[1] \begin{enumerate}[align=left] \item[Long Test 1:] \lipsum[1] \item[Long Test 2:] \lipsum[1] \end{enumerate} \end{document}

2

Not a beamercolorbox but a tcolorbox: \documentclass{beamer} \usepackage[most]{tcolorbox} \begin{document} \begin{frame} \begin{tcolorbox}[extrude left by=1cm, extrude right by=1cm] text \end{tcolorbox} \end{frame} \end{document}

2

This does not look really nice -- it's hard to read, but setting margin=0.5in generates small margins. I don't recommend this. \documentclass[a4paper]{book} \usepackage[margin=0.5in,nomarginpar]{geometry} \usepackage{blindtext} \begin{document} \blindtext[10] \end{document}

2

You could test for the page size using \ifdim\paperheidht=297mm \textheight=9.21in\fi% note the space where (from article.cls) \DeclareOption{a4paper} {\setlength\paperheight {297mm}% \setlength\paperwidth {210mm}} \DeclareOption{a5paper} {\setlength\paperheight {210mm}% \setlength\paperwidth {148mm}} \DeclareOption{b5paper} ...

2

If hyphenation is allowed, please compare corrected and uncorrected paragraph. The \-'s are the places, where hyphenation is allowed. \documentclass[12pt,a4paper]{article} \usepackage[spanish,es-noshorthands]{babel} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{mathptmx} \usepackage[title]{appendix} \usepackage{pdflscape} ...

2

Although not a direct answer to your question because your layout will be recalculated, next time you may want to have a look at the bcor option of the Koma-script classes (e.g. scrbook). This option was specifically designed to add a binding correction like you seem to want.

2

Some suggestions: Never use \resizebox for tables -- unless you want to risk creating major font size changes between the text and table portions of your document and from one table to the next. Instead, provide a bit more structure to the table headers, e.g., through well-chosen line breaks. That way, the overall width of the table won't exceed ...

1

I had to make a few substitutions to get it to run on my system. First, your matrix equation was too wide for even landscape, so I broke it into two lines. Second, if you want the rotated box to be at the bottom left, you need to add \vspace*{\fill) before \rotatebox. (BTW, \vspace*{fill} does nothing inside a normal minipage.) Finally, I added a \fbox ...

1

If there should be nothing else than a splitted background, this can be done with tcolorbox package quite easily. \documentclass{article} \usepackage{blindtext} \usepackage{xcolor} \usepackage{geometry} \usepackage[most]{tcolorbox} \geometry{margin=0pt} \newtcolorbox{bgbox}[1][]{nobeforeafter,leftright skip=0pt,boxrule=0pt,enhanced jigsaw,sharp ...

1

I solved my problem by adding \vspace*.

1

If you know what your default font size is (usually \normalsize), then just reset it after the TOC is over. \documentclass[a4paper,12pt]{report} \usepackage{amsmath,amssymb,amsthm,latexsym} \textwidth 16.5cm \oddsidemargin 0cm \evensidemargin 0cm \textheight 24cm \topmargin -2cm \parskip 0cm \parindent 1cm \usepackage{tipa} \newcounter{test} ...

1


1

It's wrong to use center to begin with. In the following example I used the PDF for another answer; in the second page I added the same heading, in order to see that they're typeset in the same way. \documentclass[12pt,a4paper]{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage[brazilian]{babel} ...

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