{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
2answers
10 views

How to set fit height and width for tcbox according to the text inside?

I want to place a word into a \tcbox, but the box has too much space around the word. For example, the word "EQUAL".
2
votes
1answer
52 views

Text in table is defaced for no apparent reason

I made this table (now is modified to reproduce the problem described on Edit 1): \documentclass[11pt]{article} \usepackage[spanish,mexico]{babel} \usepackage{arabtex} \usepackage{utf8} ...
21
votes
3answers
15k views

How can I make a horizontal dashed line?

How can I make a horizontal dashed line in LaTeX? Just writing lots of single dashes results in a continuous horizontal line.
5
votes
1answer
33 views

Referring to correctly-styled algpseudocode procedure name in document

Given an algorithm written in algpseudocode: \documentclass{article} \usepackage{algorithm} \usepackage{algpseudocode} \begin{document} \begin{algorithm} \caption{Part 1} \begin{algorithmic}[1] ...
0
votes
1answer
65 views

Display a breve over several letters

I'm writting with a very dumb question, buy I haven't been able to find anything regarding this topic, nor think of a more general topic to look into. I'm trying to have a \breve which scales ...
1
vote
2answers
35 views

How to manage chapter title position with a background picture?

I wrote the following code in order to design a chapter title but there is two things I did not succeed to do. \documentclass{book} \title{Titre de la thèse} \author{moi} \date{\today} ...
3
votes
1answer
46 views

Formatting code into the style used in Stackoverflow

I know that there is minted and listings for displaying nice code in .tex documents. However, I'd like to use the style that is used for Stackoverflow code: example. Are there any packages for this, ...
4
votes
2answers
25 views

Latex listings package, issue with caption touching the frame and junk character instead of space

I am using listings package and facing two issues Following is the LaTeX code and output \lstset{language=Java, basicstyle=\small, frame=single, breaklines=true, ...
1
vote
1answer
46 views

LaTeX formatting error

I've converted a word document to LaTeX but when I write : "BELLARE , M , ..." Latex shows me: "... , M , BELLERE" What's the error and how to solve it? part of text: ...
95
votes
4answers
4k views

Consistent typography

When working with large documents, or even across multiple (smaller) documents, I often find that I forget which typographical consistencies I should stick to. With TeX being inherently consistent in ...
4
votes
3answers
562 views

Bold one cell in table using CSV reader

Is it possible to bold a single desired cell (or number of cells) using csvreader (besides the head)? Here is an example of making the table. \documentclass{article} \usepackage{csvsimple} % Make ...
3
votes
1answer
55 views

How to underline a section's title without using the sectsty package (memoir class)?

Can anyone tell me how to underline a section's title without using the sectsty package please? Indeed I am using the memoir class which prohibits this package. Thank You.
1
vote
0answers
36 views

How to properly space unicode ellipsis?

Please note the discussion at the end of this thread. After discussing the tex codes \ldots et al, a commenter points out that there is a unicode code point for an ellipsis. However, on my document ...
6
votes
1answer
181 views

Tufte style table of contents in article class

I want to create a tufte-book style ToC, very similar to how Gonzalo Medina made something in this request: Pretty Table of Contents So far this is what I got: \documentclass[letterpaper]{article} ...
4
votes
1answer
33 views

Reducing the distance in textbf environment

I want to introduce a notation for concatenating vectors in a manuscript that I represent vectors with bold characters, $\textbf{x}$. The problem is defining it like $\textbf{x}:\textbf{y}$ introduces ...
2
votes
2answers
57 views

Beamer: How to format both frametitle and framesubtitle

I wish to customize the appearance of both my frametitle and framesubtitle. However when I try to do so, only the frametitle is rendered. This is a sample code: \documentclass[20pt, ...
6
votes
2answers
109 views

Hanging section - Memoir

I would like to obtain something like this: So far I have this: My MWE: \documentclass[article]{memoir} \usepackage{lipsum} % Layout \settrims{0pt}{0pt} \settypeblocksize{562pt}{330pt}{*} ...
1
vote
1answer
40 views

How to hide references from navigation bar in beamer class?

I am doing a presentation using the beamer class with the Warsaw theme. Further, I have to disclose my bibliography at the end of the presentation. Unfortunately, as soon as I type in \bibliography{} ...
2
votes
1answer
52 views

customizing chapter title format in classicthesis

I'm using classicthesis and I'd like to change the formatting of the chapter title a little bit (f.e. size and color). I think I've found the according part in the classicthesis-style % ...
2
votes
1answer
40 views

Custom floats are not labeled correctly in the listof or text references

I'm new to StackExchange and LaTeX. I am using a custom float for "schemes" using the caption package. The problem I'm having is that the label "Scheme" does not show up when using the \ref command in ...
2
votes
1answer
29 views

change spacedallcaps and spacedlowsmallcaps to something like spacedsmallcaps (classicthesis)

Instead of \spacedallcaps and \spacedlowsmallcaps would like to have big and small capitals (like \scshape) but keep the definitions for space between the letters, size, colour, ... With ...
14
votes
2answers
3k views

\listings code style for HTML5 (CSS, HTML, JavaScript)

I would like to create a code style for HTML5 that can be used with the \listings package. An HTML5 document consists of three languages: CSS, HTML and JavaScript. That makes the whole thing a bit ...
12
votes
2answers
754 views

Typesetting email with internet-style quoting using LaTeX?

I'm wondering if there exists a package, that would take so-called Internet-Style Quoted plain text of an email, and format it accordingly for a PDF output. Internet-style quoting is discussed on the ...
2
votes
2answers
49 views

Adding a dash between words in List of Figures

Yesteday I was Searching in this site some help to construct my dissertation, my trouble was modify the style of the list of figures in LaTeX, more specificaly, add the word "Figure 1" before each ...
1
vote
0answers
25 views

using macro to identify “line breaks” as properties separator, “:” colon as properties name separator, and “-” hyphen as description

Here I have created document as per requirement. But I need to use macro in specific way. Here is my document : ...
2
votes
1answer
41 views

How to add horizontal line after references (biblatex) and glossary title?

I need to have horizontal lines after each title. For table of contents this works with: \renewcommand{\cftaftertoctitle}{\vskip 3em \auftaktvz} and ...
2
votes
1answer
82 views

How to replicate this chess-related list formatting?

I'm trying to create a chess-repeated document. I already understand how to use the skak package to put chess piece symbols in my documents. My current question is more pedestrian. I would like to ...
0
votes
1answer
63 views

To make chapter bigger in article

\documentclass{article} \usepackage{pdfpages} \begin{document} \chapter{RAA renal hormones} \label{06222014204556} \includepdf[pages={-}]{06222014204556.pdf} \end{document} I get formatting of RAA ...
55
votes
12answers
72k views

Make MS Word document look like it has been typeset in LaTeX

A few years back, I used to use LaTeX for writing reports and such, and I really liked the look of them. However, nowadays I am forced to use MS Word to write my reports, but that does not hinder me ...
0
votes
1answer
8 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
0answers
35 views

Fancyhdr problem — SECOND page different! [closed]

I have a really weird problem. Usually people want their first page in a document to be different. That's no problem here. In all the docs I'm creating, for some reason, the second page is completely ...
5
votes
1answer
169 views

Using space instead of comma for large numbers?

Is there a package I could use to insert a space instead of a comma for large numbers? For example, 12 345.67 instead of 12,345.67 If needed, I am using the extbook environment. All of ...
3
votes
1answer
43 views

A utility for auto-formatting .bib files?

I have a .bib files whose formatting is kind of messy: spacing, upper/lowercase use, order within and among entries... ugh. Is there a simple command-line utility which could arrange it neatly for me ...
7
votes
1answer
85 views

Mixing underline and strike-out

Word allows for all kinds of font formatting: The above example combines strike-through/strike-out (like this) and underlining. I'd like to be able to do the same, but neither ulem nor soul allows ...
0
votes
2answers
40 views

multiple aligns and line breaking

I am trying to have multiple alignment in my equation in addition to line breaking. Here is a mwe illustrating my problem: \documentclass[10pt]{article} \usepackage[T1]{fontenc} \usepackage{amsmath, ...
0
votes
0answers
12 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 ...
1
vote
1answer
218 views

How to make a particular sentence bold, large and underlined at the same time

I want to make one sentence of a paragraph bold, upper case and underlined at the same time. How do I do that?? For example: \textbf{} only makes it bold
2
votes
1answer
34 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
39 views

adding new address email and so on in moderncv

I tried this is example found in a previous question here: \documentclass[11pt,a4paper,sans]{moderncv} \moderncvstyle{casual} \usepackage{etoolbox} \makeatletter ...
2
votes
1answer
73 views

Underline and bold round number in table

I use numprint package to round number in table. I want to bold, underline, etc., some round numbers, but the following is not working \documentclass{article} \usepackage{numprint} \begin{document} ...
10
votes
1answer
577 views

How to mark book paragraphs as note, warning, tip etc.?

In my text I have some paragraphs that should be denoted as "note", "caution", "tip", "story". These paragraphs should be rendered with darker background and an icon on the left side. I was not able ...
21
votes
2answers
2k views

Chapter Title in rotated vertical box at the margin

I am using the book document class. I would like to have Chapter name (Interduction, Results, Discussion, ...conclusion...) to appear in every page, in the right side small vertical (color filled) box ...
1
vote
1answer
56 views

Classicthesis chapter title formatting

How can I modify ClassicThesis to format chapter headings with the word "Chapter" followed by the roman numeral chapter number, a verticle space, and the chapter title? As many know, the default looks ...
1
vote
0answers
61 views

How to respect 80-character limit per line of text in source code

Suppose I have a long line of italicized text in a report or other document. If it is more than 80 characters long, I may want to move everything after the 79th column position to the next line in ...
2
votes
1answer
27 views

2 different captions for tables and figures

I want 2 different types of captions. One for table and another to figures. I use this code for tables: \usepackage[labelfont=bf,nooneline]{caption} \setlength{\abovecaptionskip}{3pt} and this for ...
3
votes
1answer
28 views

Inconsistent style of “other keywords” when breaklines=true [duplicate]

Some keywords defined with the otherkeywords key are not formatted as expected when breaklines is set to true. Here is my MWE: \documentclass[12pt, a4paper]{article} \usepackage{listings} \lstset{ ...
3
votes
1answer
24 views

Resetting glossary glsdisplayfirst

I'm working on a paper that includes a summary at the start of the document, and I would like to reset the glsdisplayfirst properties somehow, so that my glossary entries and acronyms are defined both ...
2
votes
0answers
63 views

Can anyone help me mimick the style of ltxdockit? [closed]

First, I'd like you to take a look at the documentation of the mathspec package. Now I'm not interested in the package as such, but I'd like to use a style like the one used in the documentation. For ...
5
votes
1answer
91 views

TikZ: Key to the \draw command to modify the inside nodes

Suppose I have the following code: \documentclass{article} \usepackage{tikz,amsmath} \begin{document} \begin{tikzpicture}[scale=6] \tikzstyle{xthick} = [thick, |-|] \tikzstyle{xthin} = [] % ...
3
votes
1answer
51 views

Adjust Format of List of Algorithms

I'm using an existing LaTeX template for a thesis and am trying to match the List of Algorithms to the List of Figures. I have already applied some formatting changes, but there are a few attributes ...