{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

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 ...
18
votes
3answers
5k views

Fanciest way to include Mathematica code in LaTeX

I am trying to include a Mathematica code in LaTeX. To obtain the Mathematica code I just exported notebook as PDF. I didn't like the way it was included in my TEX code so I just thought of adding a ...
5
votes
2answers
40 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
123 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
52 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
91 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
31 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
33 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
34 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] ...
0
votes
0answers
22 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
29 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 ...
0
votes
1answer
39 views

\pause in KOMA-script scrartcl

Is there any way that I can use the command \pause in KOMA-script presentation? The \coverand \uncover commands seem to unfunctional as well. This is the template I use: ...
47
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
54 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
96 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
53 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
23 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, ...
1
vote
1answer
33 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} ...
2
votes
0answers
16 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
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
138 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
22 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} ...
1
vote
1answer
108 views

Using Easylist and leaving one entry bullet blank

So I have a checklist using the checkboxes. I want to make occasional ones not have the check box because there are several indented checkboxes I want to choose from. I see Choosing the bullet of a ...
4
votes
3answers
165 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
47 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
57 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

list all 3 to 5 author names in the first in-text citation using apacite

I use \usepackage{apacite} in the preamble (sublime 2 editor) and \bibliographystyle{apacite}. I did not have to manually install the apacite package. For in-text citations of 3 to 5 authors, I need ...
2
votes
1answer
116 views

print the chapter number as name in class file latex

I am using a Duke University LaTeX template for master thesis, the template print chapter headers as follows: Chapter 1 chapter name but I want to print it as follows Chapter one: ...
0
votes
1answer
34 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
26 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
55 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
38 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
101 views

Broken automatic line breaking in section titles when ulem and hyperref are used

I am trying to use the ulem package to underline section titles while still being able to have automatic line breaking: \documentclass{scrartcl} \usepackage[normalem]{ulem} \begin{document} ...
2
votes
1answer
24 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=(, ...
0
votes
0answers
33 views

Howto format “Edition” in bibliography with Biblatex

I use biblatex and biber. I want "edition" part of my bibliography appears "edisi pertama","edisi kedua","edisi ketiga",etc instead of "1st edition","2nd edition","3rd edition",etc. I have ...
1
vote
1answer
24 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} ...
2
votes
1answer
38 views

Setting Entries of List of Listings in LaTeX. Package Listings

I'm trying to put an hyphen after the entries of the "List of Listings" as follows: List of Codes Code 1 -- First Code ................................ 7 Code 2 -- Second Code ...
2
votes
2answers
37 views

bibtex - Change format of urldate

I have the problem that I use the citation manager Citavi and it can only export in the format urldate = {dd.mm.yyyy}. However Bibtex needs the format urldate = {yyyy-mm-dd}. It is not really ...
6
votes
2answers
89 views

Modify ToC Backmatter Entry Distance

I created a simple document using memoir class as follows: \documentclass[12pt,a5paper]{memoir} \renewcommand\thepart{\arabic{part}} % modify ToC part \renewcommand{\cftpartaftersnum}{.} ...
2
votes
1answer
101 views

Combining MATLAB and C++ code in Latex

I have included MATLAB code in my report with \begin{lstlisting} and \end{lstlisting} but, in the same report, I need to include C++ code. I want it to recognise the language and highlight with colors ...
2
votes
1answer
33 views

Change Section names on side into the title of the section

I was using package etoolbox, but I want to change the section numbers into titles instead but been having a hard time since i am not familiar with the code. Clickable chapters on the right side of ...
0
votes
0answers
21 views

How to even out margins around a border?

Any ideas as to why the document seems to shift up and to the right on the page? I've tried using {anysize} and {geometry} to adjust the borders but I've had some issues. With {geometry} the margin ...
1
vote
2answers
64 views

How to deal with very long formulas

I have a very long formula that does not fit in the page. What should I do? Here is the code: \listfiles \documentclass[oneside,12pt]{scrartcl} \usepackage[ngerman]{babel} %\usepackage{amsmath} ...
4
votes
2answers
77 views

Figure caption inside a tinted box

I would like to print the figure caption with a "tinted box" (a box with a background colour). How to achieve this? My MWE is : \documentclass{book} \usepackage{lipsum,graphics} \usepackage{caption} ...
2
votes
1answer
46 views

How to format the header in Tufte Handout?

I would like to use the librecaslon package with tufte-handout. I have encountered a problem in which my headers are printed entirely in lowercase. I believe this occurs because librecaslon has no ...
4
votes
1answer
56 views

Remove color of acronyms used in an equation

I use the acronyms package to define mathematic symbols like this: \begin{acronym}[long] \acro{v}[$\vec{v}$]{View direction vector} \end{acronym} I do this with lots of others where it is faster to ...
0
votes
0answers
23 views

Change format of character inline

Is it possible to change the format of characters in a line of text: Example: CHARACTER NAME: (include a space) Dialogue and more dialogue and yet more dialogue ...
1
vote
1answer
87 views

Rotated Text in Table Extending into Rows in Lyx

I'm trying to create a table with some rotated text in it, but the rotated text is extending into the rows below the cell, as shown here: Here is what my screen looks like in Lyx: I've tried ...