{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

4
votes
1answer
78 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
85 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
51 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: ...
4
votes
1answer
98 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
61 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 ...
4
votes
1answer
45 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
1answer
131 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{} ...
3
votes
1answer
607 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 % ...
3
votes
1answer
51 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
2answers
210 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, ...
3
votes
1answer
335 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 ...
2
votes
2answers
92 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
39 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
83 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 ...
0
votes
1answer
69 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 ...
2
votes
1answer
84 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 ...
5
votes
1answer
247 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
65 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 ...
0
votes
2answers
47 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
1answer
25 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
262 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
66 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
104 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
134 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
101 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} ...
2
votes
1answer
55 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
36 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
59 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
1answer
85 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} ...
5
votes
1answer
122 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
157 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 ...
4
votes
2answers
136 views

To label Question environment

My minimum code \documentclass{article} \usepackage[framemethod=tikz]{mdframed} \mdfdefinestyle{ans}{ linecolor=cyan, backgroundcolor=yellow!20, frametitlebackgroundcolor=green!40, ...
1
vote
3answers
244 views

Beamer overlays: changing font between slides

I am creating slides with overlays in Beamer, using TiKZ to create a figure consisting mainly of text nodes. The idea is that different parts of the figure are highlighted on each slide. Initially ...
2
votes
0answers
47 views

LaTeX Style Formating for Undergraduate Papers [closed]

I was wondering what the best LaTeX style formatting is for writing an undergraduate paper? I have only used it for lab reports so far and need to expand my knowledge of formatting for different uses. ...
2
votes
2answers
139 views

Difficulty with \flalign

Consider the following example. \begin{flalign} &Max Z=a+b\\ &Min P=c-d\\ &\mbox{subject to}\\ &a \leq 10\\ &c \geq 5 \end{flalign} When I run it I get the desired output, but ...
0
votes
0answers
28 views

Facing Table of contents problem? [duplicate]

Facing Table of Contents problem. On first page of Table of Contents no numbering but on the next It's start numbering with header n footer. \documentclass[tikz,table,twoside,12pt,a4paper]{report} ...
2
votes
1answer
57 views

Place chapter heading in margin

I'm using the memoir class. I would like the \chapter{xxx} command to place the chapter heading in the margin instead of above the text. Like this: This question is somewhat similar, but in that ...
4
votes
2answers
155 views

Line numbers are outside the box in algorithm2e

Here is my code: \documentclass[11pt]{llncs} \usepackage[utf8]{inputenc} \usepackage{parskip} \usepackage{amsfonts} \usepackage{amssymb} \usepackage{dsfont} \usepackage{float} \usepackage{multicol} ...
2
votes
0answers
35 views

The Badness of Badboxes [duplicate]

On this forum, I have had many of the more experienced users tell me to tweak my format so that I eliminate badboxes. I do not see the point of nitpicking my LaTeX code to eliminate badboxes. I have ...
39
votes
4answers
3k views

What is the Necessity of $…$ Around Numbers?

I typed up an assignment with a lot of numbers in LaTeX and turned it in to my adviser. When he returned it to me with some corrections, one of which was a lot of $ around my numbers. I understand ...
3
votes
1answer
311 views

How to squeeze a formula inside a text in latex?

I type some formula in latex inside my text, but When I make it pdf I see it is not squeezed. How I can make it squeeze? See the attached, which shows the problem!
3
votes
0answers
79 views

Identifying and adding macros [closed]

I added two macros: \newcommand{\tblkeyword}[1]{\textcolor{red}{#1}} \newcommand{\tblkeyword}[2]{\textcolor{blue}{#2}} and tried to use at like: \tblkeyword{ObjectId} // which shows red color. ...
3
votes
1answer
199 views

I get dashes instead of bullets in \itemize

When I use \begin{itemize} ... \end{itemize}, the items are displayed as dashes. But I want them to be displayed by bullets. Those are my headers: \documentclass[11pt]{llncs} \usepackage{amsfonts} ...
0
votes
0answers
64 views

using macro to simplify the code

I got my code working with net and SO help. But now I want to simplify it using macro. I dont know macro, but people says it makes code more simplified. can some one guide me to have macro for this. ...
7
votes
1answer
705 views

How can I make my LaTeX paper look like this?

I've seen MANY papers created with LaTeX that have the following format: In particular, I like the font sizes and the way that section titles are centered and in all caps. Does anyone know if ...
3
votes
1answer
62 views

adding large curly bracket and black title background

I tried to add curly brackate using \left{ , \begin{array}{@{}ll} but no help. What is the way to add large brackate to cover as in image? Is is possible to create black strip as in image behind ...
6
votes
1answer
130 views

Formatting of long equation containing a matrix?

I've a problem formatting this equation. It's containing a 5x1 matrix and the content of a cell in a matrix is pretty long. All in all it does not fit on the page. Should I use split() or is there ...
2
votes
0answers
69 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 ...
0
votes
0answers
25 views

Special format for an author's name in biblatex bibliography [duplicate]

To use bold text format for an author's name in biblatex bibliography I use \textbf{LastName, FirstName, MiddleName} command in bibliography database. I wonder if it is possible to use some special ...
1
vote
1answer
123 views

latex text bold, center and link issue

I created one doc here. It has two pages, code seems correct as per me but there are some issue with it. I used \hfill to put the title in center. IS it wrong? In email, I made only this word bold. ...