{formatting} is for general questions about formatting document elements. Use this tag in addition to other tags specifying what should be formatted. For questions about font attributes (e.g., {bold}, {italic}, {small-caps}, {sans-serif}, {typewriter}), use the appropriate tag instead.

learn more… | top users | synonyms

2
votes
1answer
33 views

How to delete a “chapter” in ToC which comes from \printpagenotes

So I have a document in memoir that uses both footnotes and endnotes. The endnotes are generated through the \makepagenote preamble, and \printpagenotes The problem is that in the ToC, and the ...
0
votes
0answers
17 views

How to prevent algorithmic from floating? [duplicate]

I have seen similar questions usually with the opposite problem and this is confusing me like no other. I would appreciate any help in getting this to work. I am using the algorithmic package to draw ...
2
votes
1answer
206 views

adding new address email and so on in moderncv

I tried this is example found in a previous question here: \documentclass[11pt,a4paper,sans]{moderncv} \moderncvstyle{casual} \usepackage{etoolbox} \makeatletter ...
3
votes
1answer
37 views

Can't insert linebreaks and ampersands in math mode using \newif

I write lecture notes and beamer slides using lots of macros containing math expressions. I'd like to be able to format conditional on whether or not I'm running beamer. So I've written ...
1
vote
0answers
14 views

number the equation without section or chapter [duplicate]

i want to number the equation without the number 2 in the image please \begin{equation}\label{N} ...
3
votes
1answer
79 views

How do I change to dashed lines in manual 97.12?

This example is taken from section 97.12 of the pgf manual. It explains perfectly what I want to do, but I need the borders of the rectangle made of dashed lines. \begin{tikzpicture} ...
9
votes
2answers
293 views

Change author font for specific cite command

Consider the following MWE \documentclass{article} \usepackage[style=authoryear-comp,backend=biber]{biblatex} \addbibresource{biblatex-examples.bib} \AtBeginDocument{% ...
9
votes
3answers
8k views

Matrix Inverse symbol

Is there a symbol for the inverse? I have been using X^{-1} for my matrix inversions, but this results in the -1 being rather large and taking up almost as much room as another symbol. Is there a ...
33
votes
4answers
30k views

Non italic text in theorems, definitions, examples

What package should I use, or what setting can I make to the font in theorems so that the text wouldn't be italic. I use amsmath, and from default, everything I write in theorem environments becomes ...
2
votes
2answers
58 views

How to recreate the dotted line from the ToC?

Is there a command to draw a dotted line like the one in the table of contents? I used \dotfill but this creates a row with a different spacing between the dots. The dotted lines on top were ...
0
votes
0answers
10 views

Formatting datas with datatool package

I have a data file data.txt like First string name|rank|degree| Smith| major|PhD John|Lt| Eugen|St|PhD Part of MWE \input{data.txt} \DTLsetseparator{|} ...
2
votes
1answer
47 views

List of listings name in header

I have a two-sided book document and want to format the header such that the chapter name is on the outer part. Everything works fine, but one thing annoys me. I have some source code listings ...
1
vote
0answers
16 views

How to put a number in a circle using grbbrige package

I am using grbbridge package for writing my bridge notes. According to package's documentation, you can denote the first card played by a player, by simply putting an "underling" mark in his/her card. ...
3
votes
2answers
151 views

How to remove period after part number in TOC (KOMA used)

How to remove period after part number in TOC (KOMA used)? My solution was to set tocloft package, which is provide command \cftpartaftersnum but I do not want to use it for some compatibility ...
0
votes
1answer
56 views

TOC Indent CHAPTER past PART

I'd like to figure out how to indent Chapters in my TOC past the Parts headings. I'd like to do this to improve legibility. This is how my document is laid out in main.tex ...
1
vote
0answers
22 views

Latex, moving specific parts of texts to column / forcing not to skip to new page

probably a stupid question, but something I haven't really been able to find a solution to. I've been working on a project and I can't seem to be able to get it to display how I want. Is there any way ...
1
vote
1answer
82 views

How to install the tkz-euclide package to use with Miktex? [closed]

I use Miktex 2.02, 64 bit. When I compile (Latex - PDF) \documentclass{article} \usepackage{fourier} \usepackage[usenames,dvipsnames,svgnames]{xcolor} \usepackage{tikz} \usepackage{tkz-euclide} ...
2
votes
1answer
39 views

Parshape doesn't work

I know that wrapping picrures is frequent question here, and all of my quetions here are about it. But new day is a new probem. Look at the screenshots... You will get this if you run my code ...
1
vote
1answer
66 views

Macros just for certain number of lines

I want to write a macro that will do certain things with a fixed number of lines coming after this macro. For example, how to apply \rightskip=2cm to the first four lines of a paragraph How to ...
18
votes
3answers
10k views

Add second enumeration item on the same line?

I'm writing a document that has a large number of lists containing short enumeration items, and I'd like to be able to [manually] put multiple items on one line. Thus, for example, I'd like to say ...
52
votes
6answers
10k views

Make one author's name bold every time it shows up in the bibliography

I'm working on a CV. I'd like to highlight my name in every entry in the bibliography. I've tried simply replacing {myname} with {\bf myname} or {{\bf myname}}, but they fail with various errors, ...
34
votes
6answers
6k views

How to output a counter with leading zeros?

I can output the value of a counter in a LaTeX document via: \setcounter{mycounter}{1} \arabic{mycounter} Which inserts a 1. But how do I format the output by, for example, adding a leading zero if ...
0
votes
1answer
41 views

Compiling a file with repetition of the same document

What I am trying to do is to implement an option on my tex file that allows me to choose how many times the document I wrote is repeated in the compiled pdf. The reason is that I need the pages to ...
7
votes
1answer
67 views

bold just one line inside of lstlisting

How can i bold just one line in this code? \begin{lstlisting} //Algoritmo 2 int f2 ( n ): local i , j , r =0; para i = 1 a n -1 para j = i +1 a n r = r + 2; ...
0
votes
0answers
25 views

Double spacing, not in titles [duplicate]

I aim to write paragraphs with double spaces lines, so I decided to use the setspace package : \usepackage{setspace} \doublespacing But the result is that even in titles, figures, nearly ...
1
vote
1answer
56 views

Formatting with fancyhdr [closed]

I need a special formatting for my document which it class is (article). The first page has: special header and NO footer header contains image on the right and text on the left and both on the ...
1
vote
0answers
13 views

How to put address and email after authors not at the end of the document

I am using the BMC tex template, and I am trying to put the address and email of an author at the beginning of the document (right after the author names) and not at the end. Is this possible?
8
votes
1answer
409 views

How to wrap pictures in lists in theorems with formulas?

I want text to flow pictures. @Bernard adviced me this way of doing it with formulas and theorems. Thanks him, it works great in many cases better than any other variants I have ever seen. I have ...
1
vote
1answer
44 views

Small caption under a tikzpicture or image

I have a document and what I want is below every single tikz or image to have a small caption "source: ....". What would be the most convenient way to do that? Code is: ...
1
vote
1answer
42 views

How can I make this tree shrink to fit standard page?

\documentclass{article} \usepackage{tikz} \usetikzlibrary{trees} \begin{document} % Set the overall layout of the tree \tikzstyle{level 1}=[level distance=3.5cm, sibling ...
5
votes
1answer
70 views

\textsc does not make small caps

I try to produce small caps for abbreviations like "AM" or "PM". However, this code \documentclass{article} \begin{document} The flight to Krakow departs at 6:30 \textsc{AM}. \end{document} yields ...
2
votes
0answers
36 views

Is there a way to make a block wrap from the column 1 to the column 2?

I am formatting a poster for my thesis presentation. It is in a beamer documentclass, and I am using blocks within a column environment to split up the information so that it looks nice. I have ...
2
votes
1answer
23 views

Badboxes when using \underline

I have the following: \documentclass[10pt,twocolumn]{article} \usepackage{XCharter,amsmath} \usepackage[T1]{fontenc} \usepackage[right=1cm,left=1cm,top=1cm,bottom=2cm]{geometry} ...
7
votes
2answers
4k views

How to write a non-today date in latex with localization formatting?

I've tried googling around and all I have found is a lot of example on how to format \today. But that isn't what I want. Instead, I want a way to format historical dates based on the localization ...
0
votes
1answer
30 views

Copying a URL into latex

I have a URL(below) that I want to put into latex as a reference but as it has % symbols in then it gets commented out. Is there a way to do this so it displays normally? Thanks ...
2
votes
0answers
28 views

Creating a line between one paragraph and the next

I just want to make it such that there is a line between my current and my next paragraph but also to have no indentation on the second paragraph.
1
vote
0answers
23 views

Positions of variable indices: use of package “subdepth”

For some reasons I like to align top of indices regardless if variable has exponents or not and if exponent is a, 1 or g, p, q, y. With use of package [low-sup]{subdepth} the aligning is improved, ...
3
votes
1answer
44 views

Change main text font only

I am writing a book and I use \usepackage{charter}, but this changes the font of the main text too. How do I keep the font for Chapter title, Section title, header, footer etc of this package and use ...
1
vote
0answers
25 views

Adding bullet in the end of a remark or an exmaple [closed]

I’d like to add a bullet at the end of an example associated with my thesis. For instance, how can i achieve that in the last statement here ?
0
votes
0answers
24 views

Page content formatting

So have found some issues with page content placing. It never happen to me before. So I have 3 pages of text and one table (which is 1 page length). These all pages are two sections. First section is ...
3
votes
2answers
237 views

Date formatting — changing from web format to another format

I have two different dates in my latex document which is not current dates (dates which come in my latex template from the web form). They look like this: 2016-03-31, but I want these dates be in the ...
1
vote
2answers
54 views

how to increase Bracket size in Variance formula?

I want to increase the size of the bracket to display more nicely the output, but I didn't find out how. $$s^2 = \frac{1}{n-1}[\sum\limits_{i=1}^n x_i^2 - \frac{(\sum\limits_{i=1}^n x_i)^2}{n}]$$ ...
2
votes
1answer
58 views

Specific chapter page formatting

I bought a recent math book, and it was clearly made using TeX. Here's an example from the chapter page: I wanted to reproduce this chapter style for other texts I'm working on (same fonts, sizes, ...
3
votes
1answer
101 views

Bibliography formating

I have a question regarding bibliography. I am not a LaTeX pro, It doesn't matter for me at the moment if I have to use embedded bibliography or bobtex. The question is, how can I accomplish the ...
2
votes
1answer
73 views

\setindent hack and alignment between parallel paragraphs with reledmac

Based on David Carlisle's answer here, I've defined a macro that stores the length of the last line of the current paragraph. But when using it with reledmac and -par, it messes up the alignment ...
4
votes
1answer
225 views

Margins and positioning with tikz-dependency

I am using gb4e and tikz-dependency simultaneously to demonstrate dependency examples with my glossed sentences. But if my example sentence is too long, it doesn't get split across lines and just goes ...
0
votes
1answer
58 views

Standard way of typing a set of equations in math mode involving two relations, for example: $=$ and $<$ [closed]

When typing a set of equations in math mode, is it better/clearer/standard to type, for example, how Rudin types this equation (pg 15 'baby Rudin'): Notice, how the third line changes to $\le$ and ...
2
votes
1answer
29 views

Macro to store the length of a paragraph's last line

Based on an answer here, I've defined a macro that should store the last line of the current paragraph without producing any output. But the code below produces the expected result only the first ...
3
votes
2answers
104 views

How can I change a specific page number to bold?

As an ester egg I would like to change the formatting of only one page number and leave all other as they are. I am using the article document class with page number on the bottom of the page in the ...
1
vote
0answers
20 views

Getting the length of the last line of paragraph w/o producing vertical space [duplicate]

Can I use $$\predisplaysize$$ to record the length of the last line of a paragraph without producing any output (vertical space)? \documentclass{article} \usepackage{lipsum} \newdimen\lastline ...