{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

7
votes
1answer
281 views

titlesec: why is contents a section?

I've been playing around with the titlesec package combined with the scrartcl class. I find the headings titles of scrartcl a bit ugly, but I do like the fact that I can scale font sizes to 8pt. ...
2
votes
1answer
471 views

Prevent newline in title of beamer presentation

How can I prevent the new line indicated in the picture below? Here is a MWE: \documentclass[svgnames,9pt]{beamer} \usepackage[latin1]{inputenc} \usetheme{Warsaw} \setbeamertemplate{headline}{} ...
1
vote
1answer
3k views

Divide an algorithm on two pages [duplicate]

\usepackage{algorithm} \usepackage{algorithmic} \begin{document} \begin{algorithm}[H] \caption{My algo} \begin{algorithmic}[1] \STATE instruction 1 \STATE instruction 2 ......................Many ...
1
vote
1answer
1k views

How to align middle-align text in a parbox?

I am trying to add a frame around a text which would be centered and vertically aligned to the middle of the box but I can only center the text. What should I do to align the text to the middle of ...
2
votes
1answer
2k views

customizing moderncv \section title style

I would like to customize \section style in order to have the following title (forget the horizontal line) : I imagine that I need to modify the following definition: ...
3
votes
1answer
1k views

Remove underline from Table of Contents

I'm trying to create a Table of Contents but I am having some trouble getting it to look how I want. At the moment I have the section headings underlined in the document and because of this when the ...
6
votes
2answers
16k views

Section and Subsection Heading Style [duplicate]

Possible Duplicate: Formatting section titles How can I change the format of section, subsection and ... to something like below? 2.1 | Greenhouse Effect
4
votes
1answer
636 views

Can the acronym package be told to use a certain style?

I'm using the acronym package and I'm trying to add generic styling. Specifically, I want the first mention of the acronym to expand the long form in italics. What I've done so far is to say: ...
0
votes
1answer
509 views

How to remove bold in ToC, ideally without a package

I am writing my thesis, using a document class unique to my university - based on the article class. I have to remove ALL bold formatting in the Table of Contents, and for some reason I get an error ...
6
votes
2answers
307 views

Make \translate'd string uppercase

I'd like to typeset German weekday names in uppercase using the translator package but I can't get it working: \documentclass[ngerman]{article} \usepackage{babel} \usepackage{translator} ...
7
votes
1answer
479 views

Compare numbers with comma as decimal points

I want to check whether a number \a (read from a file) is smaller than zero using ifthenelse: \ifthenelse{\a<5}{smaller}{not smaller} This works fine when a is in the format -1. In the file ...
15
votes
2answers
927 views

Custom quotation style which depends on length of quotation

I am writing my PhD-thesis and I need to meet certain formatting requirements in regard to quotations. I know there is the quote environment. But in this conditions it doesn't match my universities ...
5
votes
1answer
3k views

Number of lines in double spacing (compared to Word)

I am a newbie to LaTeX. I noticed that my document is almost a page longer in Word compared to LaTeX. (~7.25 in latex, ~8.25 in Word). This seems to be because my Word document has 23 lines per page, ...
1
vote
2answers
864 views

How to squeeze white spaces between sections and figures?

I am using a multicolumns article template for some kind of CV profile. I have all working as intended except of 1 small problem. In my first column, I have quite some high amount of white space ...
6
votes
1answer
209 views

Chapter page formatting

I'm using MiKTeX and when I use \chapter command, it starts a new page. I was wondering how to not start a new page. My next concern is how can I align the text \chapter{*} where * is the text. ...
4
votes
1answer
1k views

Editing .bst file to modify printing of publisher and address information

I'm lost in some bst hell. Basically I'm trying to get Springer's spbasic.bst file to work. I'm almost there, but there are few annoying issues. First, instead of getting Address: Publisher, I get ...
29
votes
1answer
7k views

Closer underline

I am currently using \underline{...} to underline text. However, I want the underline to be closer to the letters (as of now, there's too much whitespace between the letters and the line). Is there ...
4
votes
2answers
703 views

How to change chapter font style in the middle of the Table of the Contents?

What I do have, is grouped frontmatter entries (chapter-like) in ToC, and the rest of the chapters have larger vertical space. What I want is to change the font style of the grouped part to, say, ...
2
votes
1answer
2k views

babel and \contentsname, how to add extra customization?

This is what I'm trying to do: \renewcommand{\contentsname}{ \vspace{-8mm} {\Huge Table of Contents}\vspace{-3mm} \rule{\linewidth}{0.5mm} \\[-4mm] } Using babel, I can get this code to work: ...
4
votes
1answer
790 views

Dotted line between glossary description and page number

Is it possible to have the standard glossary entry, but with page numbers aligned to the right and a dotted line between the end of the description and the first page number?
3
votes
1answer
415 views

Switch positions of startyear and endyear in moderntimeline

How can I switch in package moderntimeline the positions of startyear and endyear without breaking the layout? Would be nice to have the startyear below and the endyear on top. I'd like to simply ...
2
votes
3answers
6k views

Section's heading in small caps

I am using TeXmaker and I am trying to format the section's title. I tried something I had found on the internet but it was clashing with another package. How can I set all section's heading to be ...
2
votes
1answer
8k views

How to change default theme title style (bold, color, margin) of title in the beginning of each slide

I am interested in having a local change to the default theme of beamer. I want every title in the beginning of a slide to be boldfaced, black (instead of purplish, black) with a horizontal line that ...
8
votes
4answers
2k views

Can my LaTeX (maths) code be improved?

I feel that my code isn't written very efficiently. \documentclass[a4paper,11pt]{article} \usepackage[english]{babel} \usepackage[pdftex]{graphicx} \usepackage{tikz} \usepackage{wasysym} ...
1
vote
1answer
616 views

How to change the question number from just '1' to 'Question No. 1.' in the exam class?

I needed to type something like this: But wanted to change the 'numbering' to 'Question No. x.' from just 'x.' How should I go about doing that? An alternative solution is also welcome if what ...
6
votes
3answers
438 views

Problems aligning on a decimal in a table with colored rows

I'm having a problem with making a "pretty" table The intent is to have alternating light background colors with black text for normal rows to facilitate reading across, with the header having a blue ...
8
votes
3answers
4k views

How do I make the \min and max bold?

Refering to this question How to make the table fit into the column? How should I make the \min and \max bold?
15
votes
2answers
782 views

Why are these commands considered as bad practice?

I was reading LaTeX: Do not use these commands, but the author didn't explain why they are bad. Could anyone help me understand. \\ (except inside a special environment like tabular, array, or ...
5
votes
1answer
2k views

Make volume bold in custom bibliography style .bst

Since I could not find the style that met my teacher's requirements for the bibliography I have to do, I created my own bst with latex makebst on my mac. I had chosen to make the volume bold but it ...
4
votes
3answers
582 views

How can I draw a table where the upper left corner is missing? (Pic)

Is it possible to draw a table like the one in the attached picture? I've read documentation on the tabular environment but nothing really describes this well. The shading would be nice but the ...
8
votes
3answers
400 views

Want to add a string left of “Figure” in caption

Ok I need to redefine caption and probably some other things to do something like \caption{code}{caption string} So when a figure is made (code) Figure #: caption string comes out code will be a ...
5
votes
1answer
308 views

Remove Formatting in Table of Contents

I have custom colouring in the section headings, i.e. \section{\textcolor[red]{Heading}}, so when I use \tableofcontents it prints the table of contents including all the unnecessary colouring. Is ...
2
votes
1answer
1k views

How do I create a variant of the snugshade box from the framed package to wrap my definition environments in a blue box?

I'm already using snugshade to wrap my theorem environments in a grey box, but I'd like to have another bounding box just like snugshade to wrap my definitions in a blue box instead. Here is my ...
9
votes
1answer
432 views

Reformatting LaTeX code after excel2latex

I use excel2latex to generate tables from Excel. The issue is that excel2latex generates really horribly formatted code with extra spaces, misaligned, etc. Does anyone have another solution to ...
2
votes
1answer
133 views

grouping data by columns

I have these three graphics all in one line. Now I would like to have 3 columns with their respective data aligned underneath them (the alignment underneath the graphics does not really matter). This ...
19
votes
1answer
4k views

How are amounts of money to be typeset?

Writing a letter to Americans, I have wondered how to properly typeset amounts of money. As far as I know, the $-sign is supposed to precede the number, but I am clueless of the rest. Here are some ...
7
votes
4answers
562 views

cleveref: configure symbol §/§§ for all sectioning types once time

I want to configure the section symbol § (singular and plural form §§) indistinctly for all types of sections (part, chapter, section, subsection, paragraph and so on). I use the cleveref package, but ...
2
votes
1answer
623 views

How do I make text to appear in multiple columns as in newspapers on Texworks?

How do I make text to appear in multiple columns as in newspapers on Texworks instead of rows?
2
votes
1answer
100 views

Modify tex file to move chapter headers upper

I'd like to modify this code to make chapter titles appear uppper, so more text can get into the first chapter page and modifiy the TOC adding dots from the title to the page number. How can I do it? ...
4
votes
1answer
190 views

putting the title in the header for an article

For various reasons, I need to put my name and title in the header of a LaTeX document. The reason is I have a page limit and need the extra space which is taken up by \maketitle. Does anyone know ...
7
votes
1answer
2k views

Is there an easy way to change the font and size for Chapter Heading in Memoir?

I'm a total TeX newb - please be nice! :-) How can I change the font and size of Chapter headings? I don't mind where it's placed on the page - but would like it to be a sans-serif font and perhaps ...
6
votes
2answers
3k views

Changing style of table caption

I'm using the \caption command inside \begin{table} command and in the output I'm getting: Table 4.1 - Caption Table Content Is it possible to change that style to something like this? ...
2
votes
1answer
94 views

How to know the re-formatted book is centered?

I have a tex file that I'd like to print into a paperback book using lulu.com. It is formatted into A4 format and I have done some fiddling with the formatting to get it into the format of a small ...
2
votes
1answer
181 views

Formatting a custom column in pgfplotstable

Following up on my question on PGF custom columns I've successfully created a column but now I'm struggling to format it to fixed, two digit precision. This seems a little hair trigger in terms of ...
16
votes
3answers
1k views

Red squiggly imitation

Is there an elegant way to draw red squigglies under text, to emulate what a [source] code editor does when it detects errors (either spelling mistakes, syntactical errors or semantic errors)? Here ...
3
votes
1answer
365 views

Printing a single bibtex entry as enumeration item

I have a bibliography in BibTeX. However I need to report the most important literature I have written thus far. These three entries must be presented in the enumeration environment. Of course one ...
3
votes
2answers
305 views

cleveref counter and ref label number format with padding zeroes

I am using cleverref and a custom counter to typeset a special kind of reference, where I need the same text on the definition side and the reference side. Currently I use ...
11
votes
1answer
482 views

New list environment: automatic enumeration with “a posteriori” format

This is a follow-up question to Nested enumerate labels with parent label appended plus a single set of enclosing parentheses First and foremost, sorry for my English, I'm learning it currently. ...
2
votes
1answer
730 views

How to change glossaries alttree: no bold font for second level

How can I modify the glossaries e.g. alttree style to not use bold fonts for the entries in second level. First level should remain bold. I'd like to do it like \newglossarystyle{mylist}{% ...
4
votes
1answer
464 views

How to align \vrule partial vertical lines in a pgfplotstable

I had a look at this post on Misaligned multicolumn but it doesn't really solve my problem. I have the code below which is supposed to produce a table with a blue line for the first row and red lines ...