Tag Info

Hot answers tagged

7

The space you see is caused by the section title, not by the list. Change the \titleformat: \titleformat{\section} % Customise the \section command {\large\bfseries\vspace{-\baselineskip}} {} {0ex} {\hrule\smallcaps\strut} [\color{secondary}{\titlerule[0.25pt]}] % Inserts a horizontal line after the heading For setting the example I ...


6

You should be in horizontal mode when setting the sectional title. The following should work just fine: \def\Section #1\par{% \vskip 40pt \advance \SectionNumber by 1 {\leavevmode\ssa\llap{\the\SectionNumber. }#1} \vskip 8pt } Note the use of \leavevmode to enter horizontal mode.


6

Let's see what happens with your \inmargin macro: \def\inmargin#1{% \strut \vadjust{ \kern-\dp\strutbox \smash{\llap{#1}}% \kern\dp\strutbox }% } You emit a \strut that starts horizontal mode, because it does \unhcopy\strutbox. However, you should be aware of the fact that Plain does \setbox\strutbox=\hbox{\vrule height8.5pt depth3.5pt ...


6

Both header and footer are changed Changing the margin for both the header and footer lines can be done easily with fancyhdr since version 3.0 via the new command \fancyhfoffset: \fancyhfoffset[l]{\dimexpr3.14in-.75in\relax} Second page: Changing footer margins only Moving the footer line to the left can be done with a negative \kern: ...


4

I will explain the preamble you should use if you want to follow the French canon des ateliers for B5 paper. The text width is a fraction of paperwidth – 3/4 for ordinary printing, 2/3 for neater printing and even 5/8 for luxury books. What remains is white space for horizontal margins. The inner margin is 4/10 of this white space, the outer margin is 6/10. ...


4

No it doesn't. The explanation is that \@tocrmarg (which controls the right margin indentation for all but last line of multiple-line entries) is only used in \dottedtocline, so only the entries for sectional unit typeset using \@dottedtocline (such as section, subsection, subsubsection, paragraph and subparagraph entries in book and report) will obey ...


3

This is actually similar to the style I'm using in my thesis. I'm not sure I understood what you mean with "switch margins", but Latex should arrange the margins in a twoside document automatically. If you want to add further space, you can use the option bindingoffset of the geometry package (you only need to change the 0mm in the code below). To change ...


3

I dislike the idea of having the dashes in the margin, but you could do so by increasing the protrusion factor of microtype. This will also push other stuff like periods and the little hook of the "t" into the margin, but this would just be consistent. Have a look, if this is what you want: % arara: pdflatex \documentclass{article} ...


3

The revtex4-1 class commits a sin, mixing \leftskip and \rightskip with list environments. The same bad behavior happens with enumerate and itemize. You can patch the definition of \abstract so that it patches \list and makes it respect the outer setting of \rightskip. But my advice is to leave revtex4-1 for submissions to journals that require it. ...


2

The text in the MWE is not suitable for showing the margins. The title is set centered by default. Therefore, the lines do not necessarily need to span the full line width. Since you are using package geometry, you can set option showframe, which shows you the page layout: \usepackage[ a4paper, margin = 15mm, showframe, ]{geometry} Full example with ...


2

Don't do this the hard way. Using \newgeometry like this is not going to work - not, at least, without an awful lot more gymnastics than you are using at the moment. (How are you planning to restore the original geometry given that the command to do so will start another new page?) You are using titlesec already, it seems. [It has been removed from the MWE ...


2

\documentclass[11pt,a4paper]{article} \usepackage[utf8]{inputenc} %Character set \usepackage{tcolorbox} %Colored boxes \usepackage{marginnote} \reversemarginpar%% The default is on the right side \begin{document} Some text Some text \marginnote{foo} \begin{tcolorbox}[width=\textwidth,colback=yellow!30!white,colframe=white,sharp ...


2

You can use align environment from amsmath package: \documentclass{article} \usepackage{amsmath} \begin{document} \begin{align} \min\limits_{\boldsymbol{\Delta(P,Q),u}} & \sum\limits_i u_i, \\ \text{s.t.}\phantom{s.t.} & (P_{\min_k},Q_{\min_k}) \leq (P_k,Q_k) \leq (P_{\max_k},Q_{\max_k})\nonumber \\ & -P_k\,C_k \leq Q_k \leq P_k\,C_k, ...


2

If you are working on WinEdt, you can simply add the following line as the first line of your document: % -*-TeX-*- -*-Hard-*- In this way way you are telling WinEdt that yours is a TeX document and you want to use "smart wrapping" (end of line = new line) instead of "soft wrapping" (default). For already opened documents, you will have to run the ...


2

stretch is connected to package setspace and defines how the lines of caption text are stretched. A value less than one means, that everything will look a bit cramped. To define the margins of the caption, use margin ;-) \documentclass{article} \usepackage{xcolor} \usepackage{blindtext} \usepackage{setspace} \usepackage{showframe} ...


2

Quick example of layouts. This is a very versatile package. It can be used to carefully examine the layouts of any of the subparts of a document. The documentation must be read and experimented with to understand the command sequence. http://texdoc.net/texmf-dist/doc/latex/layouts/layman.pdf \documentclass[10pt,letterpaper]{article} ...


1

short answer: add \calclayout to your preamble after resetting the page dimensions. details: unlike the basic article, book and proc classes, ams document classes (among them amsart) horizontally center the contents of the page on the output medium. since a goal of the ams classes is to enforce ams publication style, this positioning is "locked in" so that ...


1

You can redefine the invocation of \tikzpicture to prepend itself with a \noindent which will alleviate the need for you to do it manually each time. \documentclass{article} \usepackage[top=0cm, bottom=0cm, left=0cm, right=0cm]{geometry} \usepackage{tikz} \let\svtikzpicture\tikzpicture \def\tikzpicture{\noindent\svtikzpicture} \begin{document} % \noindent ...


1

For TeXstudio: You can control line wrapping at Options -> Advanced Editor -> Special Options -> Line Wrapping Note: The option "Hard Wrapping" uses Soft-Wrapping during the edit session. This makes editing easier. The soft wraps are converted to line breaks during the save operation. If you want to explicitly apply hard wraps during an edit ...


1

I would use flalign and the \mathrlap/\mathclap commands from mathtools (which loads amsmath), which allows to group lines 3 and 4 of the conditions together: \documentclass{article} \usepackage{mathtools} \usepackage{showframe} \begin{document} \begin{flalign} & & \min_{\mathclap{\boldsymbol{\Delta(P,Q),u}}}\quad\sum_i u_i, & & & ...


1

In ConTeXt it's relatively easy with protrusion=pure: \definefontfeature[default][default][protrusion=pure] \setupalign[hanging] \starttext \input tufte \stoptext


1

This implementation with the tabto package will work with certain limitations. Primarily, when \marginsymbol appears in any sectioning macro argument, it must be the last item in the argument. Second, if you are using a table of contents, or a chapter page-heading, you will need to use the optional argument of the sectioning macro to exclude the margin ...


1

The class tufte-handout provides \justify for justified text: \documentclass[english,nohyper]{tufte-handout} \usepackage{enumitem} \usepackage[english]{babel} \usepackage{blindtext} \begin{document} \marginpar{% \noindent \begin{minipage}{53mm} \vspace{7mm} \underline{Here is the list:} \vspace{0.5mm} \footnotesize \justifying ...



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