{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

0
votes
0answers
54 views

Listing authors sequentially with affiliations without 'and' operator

I'm having problems listing authors in a way that doesn't cause a strange 'and' operator to appear between names, as well as names to appear on completely different lines. Sometimes it goes away and ...
0
votes
0answers
40 views

lmodern and italics or and bf coding not working in body of document, working in footnotes

I have just changed from using palatino package to lmodern. I noticed that now \italics (or \itshape) or \textbf do not appear to be active in the body of my document but work (!?) in the footnotes. ...
2
votes
1answer
37 views

Issues when formatting a picture within a footnote

Hi all I am attempting to create something along the lines of: But so far the closest that I can get is: My code is: \footnote{\begin{wrapfigure}{l}{0.1\textwidth} \vspace{-15pt} \centering ...
0
votes
1answer
37 views

\autoref{} printed “Theorem 2.1” instead of “Lemma 2.1”. How to change? [duplicate]

I labeled my lemma with \label{lem1} and referred to it later using \autoref{lem1}. However, what was printed was "Theorem 2.1" where it should really say "Lemma 2.1". How do I fix this? ...
14
votes
2answers
1k views

Why couldn't (La)TeX's layout model be as simple as CSS's layout model?

I feel CSS's layout model is simpler than (La)TeX's layout model. At the time Knuth developed TeX, the idea leading to CSS model is a "difficult" things? Or the CSS layout model is not appropriate to ...
4
votes
1answer
32 views

Correct appendix numbering

I am trying to obtain specific page numbering in my appendix. Currently my appendix page numbering in the appendix is Alph. I want to obtain page numbering that is consistent with the appendix title. ...
1
vote
1answer
55 views

How to set the counter for examples to continue from theorems?

I have the following lines: \documentclass[a4paper, 12pt, twoside]{thesis} \usepackage{verbatim} \usepackage{amssymb,amsmath} \usepackage{amsthm,amsfonts,amscd,amsrefs} ...
7
votes
2answers
792 views

What is the use of @{}?

Can someone explain the use of @{} in table formatting as in: \begin{tabular}{@{}cp{0.45\columnwidth}p{0.25\columnwidth}@{}}
1
vote
0answers
38 views

Formatting Appendix Title

I'm having a heck of a time trying to get the \chapter titles in my appendix section formatted correctly. My goal is to make it look something like this : I am able to change Appendix to Annex by ...
4
votes
2answers
178 views

Is there a website where I can paste RTF and get out LaTeX?

Yes, I know there are loads of plugins and all kinds of options for Oo, but I can't get them to work and I spend more time then I can to admit looking for things italicized in Word which should be ...
3
votes
1answer
102 views

Where can I find the layout basics for LaTeX documents?

I really like the style of \documentclass[a4paper, twocolumn]{book} These documents just look incredibly well done. This applies for LaTeX in general, the above document class is just an example. ...
3
votes
2answers
93 views

Text to wrap around informational box

I'd like to have an informational box placed to the edge of a page of text, and have the text wrap around it, like so: How should I go about doing this?
0
votes
2answers
37 views

Title format and unnumbered sections

I'm writing a report that requires a particular style for titles as given by: \titleformat{\chapter}{\fontsize{22pt}{0}}{}{0em}{\bf\LARGE\thechapter\\ ~} This shows up as intended below: ...
4
votes
1answer
92 views

Recreating formatting of an Excel table using simplecsv

I'm trying to recreate a wholesale price list in LaTeX so that the data can be updated automatically from CSV files. I'm able to import data using \csvautolongtable but I'm struggling with the ...
0
votes
1answer
38 views

Asterisk in Title Issue

I'm using overleaf for a paper and I'm using a journal template with the following in the preamble: % \documentclass[% reprint, amsmath,amssymb, aps, ]{revtex4-1} \usepackage{float} ...
1
vote
1answer
23 views

Hiding page numbers for in-line citations

When I create citations, I use the \cite[p.<somenumber>]{myCitation} format as it allows me to track where the information came from if I need to go back and reference it. I find it quite ...
3
votes
1answer
40 views

inconsistent hyperref appearance control in tex4ht

Using the \hypersetup{} of \usepackage[tex4ht]{hyperref} (as seen in the MWE below) I am trying to format the hyperlinks of links such as glossary entries so they are less noticeable. On two ...
0
votes
1answer
93 views

Putting titles in color boxes [duplicate]

I'd like to know how I can a Chapter title into a color box and change the style and personalize it. The only thing I could do, at the moment, is... What I like to do is change the style of the ...
1
vote
1answer
88 views

Fine-tuning footnote style

I need to get a grip on a custom footnote command that could be sum up by this couple of xparse commands: \documentclass[11pt, a4paper, frenchb]{report} \usepackage{xparse} ...
0
votes
1answer
35 views

Centering caption in wrapfigure environment

\documentclass[11pt,a4paper]{article} \usepackage{amssymb,amsmath,amsthm} \usepackage[dutch]{babel} \setlength{\parindent}{1cm} \setlength{\parskip}{0cm} \usepackage{relsize} \usepackage{graphicx} ...
4
votes
1answer
52 views

Using Rowstyle with S-column of siunitx

Is it possible to use a rowstyle with S-column provided by sinuitx? When I try the following the S-column does not allign the numbers (they are not even recognized as actual numbers): ...
3
votes
1answer
116 views

Using tikz to create section “bars” and “markers”

Based upon this original post include section name, as well as number in mdframed (theorem) header, I am using tikz to create a series of bars and markers (e.g. Topic No, Summary, topic summary), ...
0
votes
1answer
65 views

Change font spacing and size of bibunits \putbib

In the following example I would like to force my references section to be typeset in a smaller font with single (more condensed) spacing. My commands (a spacing environment call and a font small ...
6
votes
1answer
121 views

How to Simplify Writing a Book of Poetry

I will write a Book of Poetry, written by many authors. I hope that each author will write a poem in a plain text file. So far, I wrote a master file BookOfPoetry.tex \documentclass{article} ...
2
votes
2answers
62 views

A set of glossed phrases do not align to a list (uses linguex package)

I've loaded a set of packages as shown below in the main.tex file \usepackage{linguex} \usepackage{tipa} \usepackage{pst-vowel} \usepackage{setspace} \usepackage[T1,T2A]{fontenc} ...
0
votes
1answer
116 views

colorbox doesn't wrap the text correctly [duplicate]

There is a problem with using \colorbox command. As you can see in the example and its output, the statements in the \colorbox doesn't correctly wrapped. Is there any suggestion for that? ...
5
votes
1answer
62 views

Index (printindex) in appendix has different format than other chapters

I have a complex file based on documentclass scrbook. It has many parts and the last part is the appendix. Instead of sections I use chapters in appendix. All glossaries and bibliography are defined ...
2
votes
1answer
67 views

Problem with table formating

I'm trying to make a table with the cells centered vertically. Any solution I've found is giving me errors or not working. Here is a minimally working version of my code: ...
4
votes
3answers
168 views

How to make a framebox around paragraph title

I would like to have a framebox around some paragraph titles. Something like the diagram below. I would like the framebox to have a background color (e.g. cyan), round corners, and shade if possible. ...
107
votes
9answers
22k views

Compile a LaTeX document into a PNG image that's as short as possible

I need to convert my LaTeX documents into PNG. The problem is, I also need the resulting image to be as short as possible (height-wise). I've tried latex followed by dvipng, but the result is always ...
4
votes
1answer
42 views

How can i make (force) a paragraph to be justified and have a specified number of lines

How can i make (force) a paragraph to be justified and have a specified number of lines? Intra-line spacing is not important, but the paragraph should be completely rectangular. Below is a minimal ...
1
vote
2answers
28 views

Breaking the line

I have the following code: \listfiles \documentclass[oneside,12pt]{scrartcl} \usepackage[ngerman]{babel} %\usepackage{amsmath} \usepackage[fixamsmath,disallowspaces]{mathtools} \begin{document} ...
0
votes
0answers
36 views

Why is the command \appendix preferred over \begin{appendices}, …\end{appendices}? [duplicate]

This is a follow-up question to How to replace the word "Chapter" for appendix items with "Appendix" in book using titlesec. I've tried \begin{appendices} ... \end{appendices} ...
2
votes
1answer
80 views

Adjustment of text inside \tcolorbox and getting rid of ident after box

I have following chunk of text: \begin{tcolorbox}[boxrule=0pt,arc=0pt,colback=gray] tar: Ignoring unknown extended header keyword 'SCHILY.fflags'\\ tar: Ignoring unknown extended header keyword ...
6
votes
1answer
89 views

Insert arbitrary date

I want to simply insert an arbitrary date (in my case March 16, 2015) in a way that does not hard code the date format. That is, I want something like \insertdate{<year}{<month>}{day} For ...
0
votes
1answer
38 views

How do I align arithmetic problems?

If I wanted to align 2-digit multiplication with the line underneath, how would I do it? For example, if I wanted to multiply 32 × 45 and I wanted to multiply them in a vertical column, what command ...
5
votes
2answers
79 views

Adding colon or dash after section

I changed the format of subsubsection to remove the line breaks after them using titlesec package and the command \titleformat{\subsubsection}[runin]{\normalfont\bfseries}{\thesubsubsection.}{3pt}{} ...
0
votes
0answers
23 views

How do you write accented characters in a foreign language? [duplicate]

I'm trying to include the titles of TED talks that I'm translated into my resume, but since the talks are in Spanish there are some characters that don't show up correctly. When I write: \item ...
4
votes
3answers
142 views

How do I modify the size of S the summation operand?

I bet this fancy summation operand S is in fact $\mathcal{S}$, am I right? But how do I modify the size of this thingy? \bigg or \left\right doesn't seem to work... And something like this: ...
2
votes
1answer
72 views

Framed / Boxed and underlined Item in itemize?

I am preparing a presentation using beamer and want to have a listing which looks like the following example: Could anyone tell me how this could be achieved in LaTeX? Thank you for any hint :-). ...
1
vote
1answer
112 views

How can I wrap this code in a function?

I have a text that describes spell powers in a game. The following pattern is repeated for each spell: \documentclass{article} \begin{document} % Template for spell powers. \textbf{Small Heading} \\ ...
3
votes
0answers
47 views

How to use same font-style with escapechar in lstlisting?

Original Question I want to highlight something inside a C++-comment in a code-listing. \documentclass[a4paper, 12pt]{article} \usepackage{color} \usepackage{listings} ...
1
vote
1answer
36 views

Tables does not fit [duplicate]

I have a pretty long table which is of the size of one page. The thing is that I want that this table is broken in pieces if my whole text is about to jump to the next page so that one part of the ...
0
votes
1answer
39 views

How to convert this table to a “long table”

I have the following table that doesn't fit into a single page. How can I get LaTeX to print it on multiple pages. Currently it is being chopped off. \begin{table}[h] ...
1
vote
0answers
77 views

Some questions about llncs2e class

First, I want to say, I need someone who knows about the llncs2e class of the springer. I am preparing a paper with llncs2e class. the explanations are as follows: ...
2
votes
0answers
31 views

Setting color text to improve eye movement from the of one line to the start of the next? [duplicate]

The web site http://www.beelinereader.com/ provides a chrome browser extension which colorizes paragraphs so that moving your eyes from one line to the next is much quicker than with just black ...
48
votes
3answers
9k views

Creating Kindle-friendly versions of existing LaTeX documents

So let's say I have a large amount of documents (from ArXiv.org, suppose) that I have the LaTeX source for, and for which I would like to compile particularly Kindle-friendly versions. In particular, ...
2
votes
2answers
123 views

Formatting and Styling of Headers using titlesec in scrbook-class

I'm trying to write a book in LaTeX with scrbook class. I'm not that experienced in typography with TeX, nevertheless I would like to give my chapter-headings a special style. I found a very nice ...
6
votes
1answer
135 views

How to put Theorem Numbers in Boxes?

I'm using amsthm and amsbook. I was wondering how to put theorem numbers in rectangular boxes, both when they first appear as well as when citing them. Here is a picture of what it looks like now: ...
4
votes
1answer
90 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 ...