{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
1answer
28 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
20 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
35 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
85 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
86 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
29 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
51 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
102 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
57 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
112 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
59 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
71 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? ...
4
votes
1answer
37 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
65 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
150 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. ...
105
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
41 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
68 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
78 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
36 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
57 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
140 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
67 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
111 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
39 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
35 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
37 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
56 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
90 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
129 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
74 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 ...
4
votes
1answer
31 views

Print glossary with divided sections for each group of words ordered by letter

i successfully wrote my glossary and everything works great using this code \usepackage[section]{glossaries} \makeglossaries \newglossaryentry{API} { name=API, text=API, ...
2
votes
1answer
23 views

How to redefine a counter defined in a style file?

The style file contains the command \numberwithin{equation}{section} I would like to have continuous numbering of formulae like (1), (2), etc. Can this be done by a command in the file with the ...
6
votes
2answers
174 views

How to add spaces at every X digit in a binary or hexadecimal number?

I would like to format binary or hexadecimal numbers with a space separator at each 2 or 4 digit (or any other value like 8 digit or more). A small picture is better than a long explanation, here is ...
1
vote
1answer
25 views

How do I left, center and right align within formulas

I am struggling getting the alignment in a formula the way I want. The following snippet \documentclass{article} \usepackage{amstext} \usepackage{amsmath} \usepackage{amsfonts} ...
4
votes
3answers
189 views

Simplest way to get a colored rectangle behind text? [duplicate]

I'd like to display a grey rectangle behind text, so that certain parts of the text are more recognisable. I will do this to highlight problems' body. I found various packages, like fancytooltips or ...
3
votes
1answer
56 views

Adding a small/negligible two-tone border to bottom of slides in Beamer style

All, I'd like some help making some minor cosmetic changes to my beamer template. I like the template I have no since it's rather bare/plain (which is how I like it), but I'd like to add a little ...
2
votes
1answer
67 views

Fancy section headings

Would someone construct the following style of section heading (intended for longer reports and books)? (The dashed line is meant to be solid.) | 1.1 | SECTION HEADING (IT WOULD EXTEND AT ...
0
votes
1answer
43 views

symbol mu with specific format [duplicate]

look at symbol in the first line as you seen that symbol I think it's mu symbol how I can't show this symbol using latex
2
votes
1answer
63 views

Beamerposter and altering blocks, alert blocks and example blocks

So I'm just trying to get comfortable with making a poster with beamer. I'd like to be able to customize a few different block type environments and I'm not sure the best way to go about this. ...
0
votes
1answer
60 views

How to properly include long chapter titles into headings?

I am writing a PhD thesis which contains a long chapter title: On the edge of universality of sequential P systems When I use standard headings pagestyle, then the title in the heading overflows ...
1
vote
0answers
24 views

Braces on both side of the cases [duplicate]

how can i achieve that braces are on both sides, so in the beginning and the end of each cases environment? I Think this looks better than now. \documentclass[12pt]{article} % This first part of the ...
0
votes
1answer
42 views

Moving part of equation to next line

I have an equation: \begin{equation} MMAV1 = \frac{1}{N} \sum_{n=1}^N \omega_n|x_n|, \\ \omega_n = \begin{cases} 1 & if 0.25N \leq n \leq 0.75N \\ 0.5 & otherwise \\ \end{cases} ...
2
votes
1answer
26 views

Distance between the header and the title in ConTeXt's enumerations

I have defined in ConTeXt an enumeration for definitions: \defineenumeration[definition][theorem][ text={Definition}, prefix=chapter, way=bychapter, right=., titleleft=(, ...
1
vote
1answer
33 views

How to left-justify a section heading in moderncv?

I'm trying to left-justify a subsection heading in my moderncv-based CV. MWE: \documentclass{moderncv} \usepackage[utf8]{inputenc} \moderncvstyle{classic} \moderncvcolor{blue} \firstname{John} ...