{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

5
votes
1answer
75 views

What are the parameters of Definition enviroment?

I'm trying to redefine Definition theoremstyle and I'm stuck trying to find a single webpage where I could look up the parameters of that style. I keep finding plain style, but that's not what I want. ...
11
votes
1answer
142 views

Defining a particular environment in LaTeX

I need help writing an Example environment. I just want it to look like the figure below which I took from an old book I have in my library. This is what I have done. ...
3
votes
0answers
98 views

Should points in geometry be italic? [closed]

Variables should be italic, that's where we all agree (I think). So, a length of a segment could be marked with a. What about using |AB| for length of line segment? What about notation for a triangle? ...
5
votes
1answer
146 views

changing formatting for section headers

I would like my document to have section headings that look like this: How can I achieve this in LaTeX?
5
votes
1answer
152 views

Add table titles from captions in scrreprt class

I am badly looking for a way to give all my tables the same title in the document, that is used in the list of tables via caption[title]{long description...}. The reason is that my tables originate ...
11
votes
2answers
2k views

Customizing Chapter style in scrbook

I want to obtain styles like those showed in the next two images (I do not need the picture in the background (parabolas)): My original LaTeX code (to be customized but should keep font as they ...
4
votes
1answer
110 views

Equation number placement

\documentclass[12pt,a4paper]{article} \usepackage{amsmath}\usepackage{amssymb} \begin{equation} R_{jt,L} = \left\{ \begin{array}{ccl} R_{jt} & ; & \mbox{if $P_{jt-1} > P_{jt-1,L}$; } \\ ...
3
votes
1answer
465 views

Message Sequence chart

I'm drawing a sequencediagram with LaTeX. By now it looks like this: Is it possible to remove the grey boxes? Is it possible to put a space between handshake and ws.connect? This is my Code: ...
2
votes
1answer
64 views

Rearranging the table and making identical with the attached image

\documentclass[12pt,a4paper]{article} \usepackage{amsmath} \usepackage{amssymb} \usepackage{graphicx} \usepackage[left=1.25in, right=1.0in, top=1.25in, bottom=1.0in]{geometry} ...
1
vote
1answer
519 views

How to switch from portrait to landscape page orientation? [duplicate]

\documentclass[12pt,a4paper]{article} \documentclass[12pt,a4paper]{article} \usepackage{amsmath}\usepackage{amssymb} \usepackage{graphicx} \usepackage[left=1.25in, right=1.0in, top=1.25in, ...
2
votes
1answer
112 views

LaTeX and Table formatting

\documentclass{article} \usepackage[english]{babel} \begin{document} Without specifying width for last column: \begin{center} \begin{tabular}{| l | l | l | l |} \hline Day & Min Temp ...
5
votes
2answers
173 views

WMF format in Latex

How to add large picture which has a WMF format in a tex file without breaking it? When I convert the image it look fuzzy to me. I want to add the pic .wmf in Latex and it doesn't factor that how ...
6
votes
2answers
252 views

glossaries: display the page number but not the current page

I have been looking around the web for a few days for this problem, but I can't find a solution. I created a glossary for my thesis and when I display it I see the current page number at the end of ...
0
votes
0answers
42 views

Formatting table caption [duplicate]

So I have my table \begin{table} \center \begin{tabular}{| l | l | l | l |}\hline table stuff \end{tabular} \caption{Lots of words about table} \end{table} I want it so that the caption fits to the ...
6
votes
1answer
342 views

Wrong formatting with numprint package and nprounddigits

I'm using the numprint package to format my numbers, some of them which are rounded with \nprounddigits, but sometimes the formatting is wrong, like if it was somehow done before rounding, ie ...
1
vote
1answer
269 views

BibTeX style for the American Society for Microbiology (ASM) – chronological order, authors bold

I am trying to format a bibliography for the ASM journals. I found development.bst, which is similar to the ASM format, but this journal puts the references in alphabetical order and I want the ...
6
votes
1answer
209 views

Maintaining structure Workbook style

--Revised-- I am looking at a math workbook for teenagers. This one has the following structure: 1.Main Chapter 1.1 Subchapter 1.11 Task 1 a) problem 1 b) problem 2 c) problem ...
6
votes
1answer
2k views

description environment with italic, non bold labels, bullets and normal font in the description

I think I am lost in something very easy with the enumitem package. I would like a description environment where the label is in italics and the description in normal text. I tried this ...
1
vote
1answer
79 views

How to let \in or \notin appear above the underline when clicking the screen?

\documentclass{beamer} \usepackage{beamerthemesplit} \usepackage[english]{babel} \setbeamercovered{transparent} \begin{document} \begin{frame} \frametitle{1.use$\in$or$\notin$.} (1)Suppose $A$ are ...
4
votes
1answer
219 views

Formatting table issues

I have a table here, which is formatted in Microsoft Word. I wish to have the same table in LaTeX. Here is what I have tried to no avail: \begin{table}[H] \noindent ...
4
votes
1answer
321 views

Macro to apply tabcolsep to a table from external file

I am using R to produce my tables via xtable, but I am not using Sweave to write my document. Instead I am using TexStudio and if possible would like to stick with it. Therefore I am using \input to ...
7
votes
1answer
641 views

Adding a picture before abstract in extended abstract format

I am writing a conference paper in the Extended Abstract Format (with the chi-ext class, distributed by SIGCHI). The problem I am getting is to inserting a picture under the section of authors ...
0
votes
2answers
265 views

Search for word and italicize

I'm using LaTeX to format my books now. When I transitioned one of my books from Word to LaTeX, the italicized words didn't carry over, so I used the command \textit{word}. But after sending it to my ...
10
votes
3answers
304 views

How to customize enumeration to implement Brazilian law texts?

This is a standard model of a Brazilian contract: http://www.consultta.com/modelos_contratos/modelos_contrato/0215.htm It more or less follow the way Brazilian laws are written: as you can see, the ...
7
votes
1answer
123 views

Change format of the contents page

I want to label some of my sections listed in my contents page as 'Introductory'. I thought I could achieve this by having a dotted box around these chapters in the contents page that marks them as ...
3
votes
0answers
61 views

Caption of Table “floating” above the table [duplicate]

I have the following code: \documentclass{article} \usepackage{caption} \usepackage{booktabs} \begin {document} \begin {table} [ht] \caption*{\bf{Table 6: Pattern of Share Ownership, 2011}} ...
3
votes
1answer
251 views

Formatting the thesis chapter title

I am presently working on my masters thesis. My code is as follows \documentclass[12pt, a4paper, oneside]{thesis} \usepackage{amsmath} \usepackage{amsfonts} \usepackage{amssymb} ...
1
vote
1answer
114 views

Beamer customization - itemize not changing color

I am trying to recreate this presentation in beamer. I finally made a proper header, but for some reason my itemize items won't change color. Here is a code sample %&latex ...
2
votes
1answer
85 views

How to manage long lines of inputs in function declaration, or inside the code, in clrscode3e

This is a part of my code: \begin{codebox} \Procname{$\proc{\textbf{Connect_two_SamplePoints}}(Graph,S1, S2,connectionCostMat,cost)$} \li \Comment S1 and S2 are sample points \li cost[S1][S2] $=$ ...
3
votes
0answers
172 views

Improve output format

Could someone take a look at this output in pdf form and tell me is there a way that I could avoid so much empty space at the end of pages 1 and 3? Apologies for sending ALL the code, but it's ...
3
votes
1answer
116 views

biblatex and new line for Title, and all entries in general

I want to create a Bibliography that is a little more readable, meaning, for a single bibliography entry everything should start on a new line. Since the document will not be printed, nor submitted to ...
3
votes
1answer
131 views

Formatting the thread call stack

Given a thread call stack as follows: FATAL org.apache.hadoop.mapred.TaskTracker: Error running child : java.lang.OutOfMemoryError: Java heap space ...
1
vote
3answers
158 views

How to outputs 'C\C++'

I just try output C\C++ in LaTeX as following below: \textit{C\backslashC\+\+} But im getting this issue: ! Undefined control sequence. <argument> C\backslashC \+\+ ...
3
votes
4answers
1k views

Formatting the SQL-like script

Suppose we have a script as follows: a = LOAD 'data' USING BinStorage AS (user); b = GROUP a BY user; c = FOREACH b GENERATE COUNT(a) AS cnt; d = ORDER c BY cnt; How to write the latex code to ...
7
votes
2answers
114 views

Edit marginpar command through whole document

I'm finding myself doing the following on every margin paragraph: \marginpar{\raggedright \scriptsize <content here>} Is there a way to set the align and script size for every margin ...
4
votes
2answers
161 views

Width of tab character

I'm using the verbatim environment to format some code. Is there a way to set the desired number of spaces represented by a tab character? What is the default number of spaces?
11
votes
3answers
189 views

Not breaking the start of an environment for solution of exercises

Let suppose that I have an environment \begin{sol} ... \end{sol} for writing solutions of exercises in a test. For practical reasons, I would like that two or more solutions can be put in the same ...
4
votes
2answers
371 views

Displaying an new image for each new section with running table of contents

I would like to have the table of contents slide displayed at every \section{} however, along with the particular section highlighted (as usual in beamer using \AtBeginSection[]{...}), I would like to ...
4
votes
2answers
233 views

Suppressing the 'Appendices' page

My book has a single appendix chapter called 'Mathematical Appendix'. I'm using the appendix package. How do I get rid of the 'Appendices' page? Here's a MWE: \documentclass[12pt,openany]{book} ...
1
vote
1answer
82 views

Paralist with alwaysadjust

I want to align elements in an itemization list such that no item label uses part of the page margin. I am using the paralist package for this. However, the item indentation is not right in all cases: ...
5
votes
0answers
85 views

How can I set up nested keys using pgfkeys

I've got several documents that I would like to be able to format in different styles depending on the context of the presentation. The content should stay the same, but the formatting may need to ...
3
votes
1answer
102 views

Where can I find the layout basics for LaTeX documents?

I really like the style of \documentclass[a4paper, twocolumn]{book} These documents just look incredibly well done. This applies for LaTeX in general, the above document class is just an example. ...
2
votes
0answers
39 views

Format Inline source code like Stack Exchange [duplicate]

Stack Exchange formats code nicely with backticks using Markdown. Example: int foo = bar++ I've seen other posts that recommend using listings, specifically \lstinline to do inline source code. ...
7
votes
1answer
337 views

Inserting a landscape table into a two-column document

I have a table that takes up the length of a normal sheet of paper (when in landscape) and is only as wide as a single column. I would like to insert the table in landscape mode into one column of the ...
2
votes
2answers
520 views

Two questions: Math mode and tree diagrams for probability in LaTeX

I am trying to print a worksheet for the math class I'm teaching and I was wondering if anyone can specifically help me out in two areas. a) How do I get the output BAL1L2 without the slant? ...
1
vote
1answer
1k views

how to center align a word with bold and underline

I need to center align a word with bold and underlines. I've tried with \textbf and \centerline in all possible combinations but no use. I am using \documentclass[12pt]{report} for my report doc.
1
vote
2answers
501 views

Underline my own name in the publication list created with bibentry

I create my list of publications using \bibentry. As in some of the publications I'm only the fifth author (or there around) I would like to highlight my name by underlining it. I found solutions ...
13
votes
2answers
360 views

Joining characters in latex with no visible space between them

I would like to insert a character such that it has no width. As a toy example consider \rightarrow\leftarrow In the middle i would like to insert a (say) \bullet, but with no horizontal space. I ...
5
votes
1answer
313 views

Use of longplural, shortplural in CustomAcronymFields

I'd like to have the first occurrence of my acronyms in emphasized style. So, I redefined CustomAcronymFields and use SetCustomStyle, as suggested by the FAQ. This worked til I needed a special ...
5
votes
1answer
399 views

How can I create this kind of flow chart?

I am creating a beamer presentation. I try to create a tikz flow chart. Here is my production. T_T Actually, what I want to do is Be grateful with any help! So frustrated now. ...