{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
116 views

How to create a pre-processing command that accepts plain text and generates formatted text (based on configurable options)

Looking for the best way of creating a string-processing command in latex to achieve things like below: Given a long piece of normal text, and a set of keywords, automatically format the matching ...
2
votes
1answer
127 views

How can I set the part name and title on the same line?

How can I set part name and title on the same line. Now (at default) , the Part number is at one line, and the name of part is one line below... For example, instead of PART I This is my title ...
9
votes
0answers
166 views

Is there a LaTeX formatter/beautifier (indenter, wrapper, context aware) similar to HTMLTidy? [duplicate]

Alternating work on a laptop, netbook and tablet the word wrap of a document is sometimes too long (for small screens) and too short (for large screens). This also got me thinking. Is there a tool ...
0
votes
2answers
275 views

Special characters are losing format every time I open a document

Ok I was working with this document at home and at work in Gummi. I was using a template where everything is set for spanish so everything was working fine. Today I come to work and I find that when I ...
0
votes
0answers
54 views

Text flowing out in two column format [duplicate]

This is the code: \documentclass[sttt]{svjour} \usepackage{graphics} \begin{document} % \title{Title} \author{Author} % % \institute{Institute} % \date{Received: date / Revised version: date} ...
4
votes
2answers
1k views

Underline subsections

I am able to make subsections italic and larger using the titlesec package, but there seems to be no working solution to make them underlined. Here is my current document: ...
1
vote
1answer
69 views

Bibliographic style for manually added bibliography

I am using the thebibliography environment inside a LaTeX document. Right now, the entries appear in PDF like: [1] DACUNHA-CASTELLE, D., et DUFLO, M., Probabilites et statistique-problemes a ...
2
votes
1answer
38 views

Multiple alignments from top of page on a single page

I am trying to specify the location of text from the top of a page. I know how to set the margins for the main text and can set the top, bottom, left, and right margins for certain pages using the ...
2
votes
1answer
154 views

Set permanent first bullet starting point in beamer

I'm trying to set a permanent starting point for bullets in my Beamer slides. By default, the bullets are centered in the middle of the page. I have tried using the [t] option, but it places the first ...
5
votes
2answers
75 views

Forcing case in table

I was wondering if it was possible to force the case for a specific column in a table? Let's say the 3rd column of the following table to be lowercase. \documentclass[10pt,a4paper]{article} ...
1
vote
2answers
409 views

Page width problem in CV (Koma-script)

I am trying to compile my CV using the scrartcl document class. I am struggling a lot to reduce the margin on the right side of the page. If e.g. the university name is too long, it will follow on the ...
0
votes
2answers
209 views

How to include tex files

Is there any way that I can add different .tex files (From different folders) into another folder's .tex file? I meant that all of the .tex files will be fine and separated and I just need to ...
9
votes
3answers
210 views

Latin's scansion : length of vowels

I am a total enthusiastic beginner in LaTeX and my work in latin studies requires some twisty signs to mark the length of the vowels. I would love to find a way to have the length display on the same ...
3
votes
2answers
80 views

Format \ref output from enumeration item to not include section name

I'm referencing items in an enumerated list from another document (requirements.tex). I can do that, but I get extraneous information I haven't been able to remove. Requirements.tex: ...
3
votes
2answers
859 views

Coloured shadowed boxes around equations

When I want to highlight some important result, I traditionnally put my equations in boxes: \begin{equation} boxed{\Delta = b^2-4ac} \end{equation} I would like to have a more fancy thing: to be ...
6
votes
1answer
857 views

How to obtain this fancy chapter page with the book class

I know that designing fancy things under latex can sometimes be very difficult. I've designed the following model under powerpoint in 5 minutes, and now I would like to achieve this with latex (I have ...
5
votes
1answer
195 views

Including .tex files that need a different style file than the main text

EDIT: Substantial edit of the original version has been done to clarify the question. Background I've written two small python package manuals with sphinx (http://sphinx-doc.org/) a program that ...
4
votes
2answers
258 views

macro for card divider

I tried to adapt these card dividers for my needs, but using office caused me a lot of trouble. So, I tried LaTeX but I am not good enough at it. I got the basic table, but couldn't figure out how to ...
9
votes
1answer
597 views

Subsubsection: remove the newline (like paragraph)

Using the article document class, how can one remove the newline at the end of a subsubsection title? I am using \documentclass{article}; I do not currently use titlesec or any of the alternatives; I ...
8
votes
1answer
243 views

Customizing indexes in songs package

I'm going to build a songbook with the "songs" package. I already did some formatting to fit the songbook to my needs. Now I'm going to customize the indexes of the songbook. In a title-index ...
6
votes
2answers
481 views

Changing the formatting of equation numbers

How can I change equation numbering so that the chapter number is outside the parenthesis like this: 1(1) instead of (1.1)
2
votes
0answers
235 views

Automatic formatting of LaTeX table [closed]

I have a table table.tex coming from a statistical software Stata. I would like to know if there is a way to tell LaTeX to format, for instance, some coefficients in red and italic. Something that ...
0
votes
1answer
59 views

Is there a package (or command) to escape filesystem paths? [duplicate]

I see this is one option: c:$\backslash$subd1$\backslash$subsubd1 for representing c:\subd1\subsubd1 is there something that leaves the TeX a bit more human-readable, such as ...
4
votes
1answer
281 views

How to print a given date with an abbreviated month

The best I've been able to do is with isodate. It's the only package I've been able to find that works on arbitrary dates. \usepackage[orig, british, cleanlook]{isodate} \printdate{2013-06-28} ...
6
votes
1answer
362 views

The size of roots

I can't get to the root of this problem: I need the second root to be the same height as the first one $\sqrt{F} \: \sqrt{F_{x_x}}$ I know I can use \vphantom, but I don't know how.
7
votes
1answer
437 views

\usepackage[group-separator={,}]{siunitx} Not working with longtable?

I have a table with very long counts (in the millions), so I would like to add commas. I have tried to use siunitx in a variety of ways in the preamble: \usepackage[group-separator={,}]{siunitx} ...
1
vote
2answers
85 views

What is the code for creating a space for the name and date for a child's worksheet?

For example I want my worksheet to look like this: Name: ____________ Date: ____________ Vowels and Consonants
3
votes
2answers
324 views

How to improve this code to obtain more compact equation?

I have been trying to obtain more compact output for the following code. Any help will really be appreciated! \Pr(s_i^2)= ...
2
votes
1answer
254 views

Formatting Chapter Titles

I'm working on my thesis, and I need my chapter titles to be centered so it says "CHAPTER " and then immediately under it the actual chapter title. Right now I have ...
3
votes
2answers
101 views

Writing the “&” on the Bibliography without errors

While writing the Bibliography, I want the last author of the article to appear preceded by an "&". This is the bibtex file @ARTICLE{Chambers2002, author = {Chambers, A. F. and Groom, A. C. ...
3
votes
1answer
194 views

Getting the authors' “Lastname, Firstname” format

I'm getting the Bibliography in the following format: Firstname Lastname. Article.. What should I change to get the Bibliography in the following format: Lastname, Firstname. ...
0
votes
1answer
109 views

Column-wide formatting changes with tabular [duplicate]

I must be doing something wrong, but I follow the example precisely (as precisely as someone could reasonably guarantee) and LaTeX yet refuses to compile the document: ERROR: LaTeX Error: Illegal ...
0
votes
1answer
227 views

Formatting of other special functions

There are special macros for stuff like exp, sin, cos, etc... but not for the non-elementary special functions like F, J, I, K, E etc... although their symbold are quite standard throughout ...
1
vote
1answer
278 views

Page Numbering in “Exam” Document Class

When using the "exam" document class, LaTeX prints "1" for the page number at the bottom of the first page but prints "Page n" for all successive pages where n is the page number. Anyone know how to ...
3
votes
3answers
319 views

Changing the section format

Consider the \section{abc} the output will be like 1. abc how can I change the '.' to '-' or vice versa. i.e. 2- abc
2
votes
1answer
377 views

Compound fractions (i.e., “mixed numbers”) look bad in displaystyle

I find that in display mode, fractions that represent simple rational numbers look way too big. For instance, consider this case: $$ a = \frac12(b+c) $$ The fraction gets inordinately large ...
1
vote
3answers
181 views

Equation line break up

\documentclass[12pt,a4paper]{article} \usepackage{amsmath}\usepackage{amssymb} \textwidth=16.5cm \oddsidemargin=-0.10cm \evensidemargin=-0.10cm \topmargin=-1.0cm \textheight=24.5cm ...
2
votes
3answers
125 views

Formatting an equation

\begin{align} \frac{1}{2} (1-\varepsilon^2)\left(\partial_\tau \phi\right)^2 = \frac{1}{2} \left(1-\epsilon ^2\right) \left( -\frac{S \epsilon \sin\tau }{\sqrt{\lambda }} -\frac{\text{g2} S^2 ...
2
votes
1answer
124 views

$\cos \tau$ need to write in a different way

$$\frac{S \epsilon \text{Cos}[\tau ]}{\sqrt{\lambda }}+\frac{\text{g2} S^2 \epsilon ^2 (-3+\text{Cos}[2 \tau ])}{6 \lambda }+\epsilon ^3 \left(\frac{\left(-\frac{1}{54} \text{g2}^2 S \left(32+19 ...
1
vote
0answers
36 views

Is there a way to draw a horizontal line, across a whole page, no matter which context I'm in? [duplicate]

I've been using \hline for my horizontal lines in tabular, and \line(1,0){250} elsewhere. I'm trying to automate some of the formatting for my tex documents, though, and it would be useful for me if ...
8
votes
1answer
218 views

texindy equivalence to makeindex settings

I'm currently using makeindex to generate an index and was advised by @egreg to use xindy instead to properly manage accents in French. However, I can't find how to reproduce my current settings: ...
2
votes
1answer
119 views

Modifying section, subsection based on scope?

Using MS Word 2013 I mocked up what I would like to create using LaTeX: I tried exporting it in LibreOffice using its writer2latex; but that didn't work. So starting from the sectionbox LaTeX ...
0
votes
0answers
88 views

inline listing (lstinline) behaves bad at line end

I have defined some small macro to markup function names: \lstdefinestyle{inline-funcname}{ columns=fullflexible, breaklines=false, %Note: \usefont{OML}{cmm}{m}{it} is exactly like ...
1
vote
0answers
52 views

LaTeX listings / email quoting [duplicate]

I've been trying to do someting with LaTeX. I have some emails that I want to insert in a document. I've searched all over the web but can't find a valid solution. What I want to do is to have those ...
11
votes
3answers
252 views

How to draw a border around character in a formula?

So far everything I found on the matter of borders only applies to the text mode. I want to be able to do something like $x_i = y$ so the result will be like the ordinary "xi = z" formula with the ...
4
votes
1answer
193 views

Vertical aligment of subfigure to the top edge

I have a small problem with vertical alignment in LaTeX. I have 3 figures with different height and I want to show them in one figure (side-by-side). Unfortunately, by default they are aligned to the ...
3
votes
2answers
158 views

How to do \newcommand{\filepath}[1]{\verb!#1!}?

I want to define a command \filepath so that I can use \filepath{foo_bar.cpp} and it is printed in monospaced font. Also, why does this not work? I get strange errors: ...
0
votes
1answer
103 views

No space after the word when I defined a macro, bug? [duplicate]

I defined a macro but I found the word spacing is gone. Am I missing something? \documentclass[11pt, oneside]{article} \newcommand{\abc}{$abc$} \newcommand{\abcSpace}{$abc$ } \begin{document} Word ...
4
votes
1answer
760 views

Beamer TOC: changing color and shape for subsection items in TOC

The default items for subsection in TOC are balls (no-nummered). I would like to use blue triangles, like the symbol \blacktriangleright but blue color. Any idea?
1
vote
1answer
87 views

Uncovering Formatting?

Is there any way to have a slide show a block of text, and then by some \uncover type command, bold or underline a certain part of that text?