{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

3
votes
4answers
196 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 ...
6
votes
2answers
72 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
65 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
152 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
292 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
61 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
45 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
68 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
0answers
63 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
37 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. ...
0
votes
0answers
51 views

How can I changethe formatting of the journal entry to italics with vancouver.bst?

[vancouver.bst][1] output does not provide by defaults italics for the journal title. Is there any way to change this?
7
votes
1answer
121 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
208 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
140 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
210 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
244 views

Latex character with no width

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 ...
4
votes
1answer
127 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
256 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. ...
4
votes
1answer
60 views

Split long text in a formula

I need to insert a formula containing text within. My problem is this text is long and it goes way over the margins, so I am trying to split the line so it could nicely fit in the page. Nothing I have ...
0
votes
1answer
65 views

Bracket problem

\documentclass{article} \usepackage{amsmath} \begin{document \begin{align*} & \frac{1}{2} (1-\varepsilon^2)\left(\partial_\tau \phi\right)^2\\ & = \frac{1}{2} \left(1-\epsilon ...
5
votes
6answers
242 views

Compressing an equation

The equation below seems fine to me but when I insert this into a TeX file, it gives me back an error. Is anything wrong? The scope was to compressed the equation. \begin{align*} U & = -\frac{S ...
4
votes
2answers
119 views

Output graphics code Error

\documentclass[pstricks,border=12pt,12pt]{standalone} \usepackage{amsmath} \usepackage{pst-plot,pst-node} \psset{algebraic,plotpoints=100,labelsep=3pt} \def\f[#1,#2]{2*2^(-2.5*(#1-#2)^2)} ...
3
votes
1answer
76 views

Questions about chapter section and their formation

Hello, everyone, I want to arrange the chapter and section as the picture shown and The font should be Times New Roman, 12 point, could anyone give me some tips.
7
votes
1answer
475 views

Anyone have some cool/artistic problem set templates?

I have been losing sleep lately as to how to make the most professional looking problem set (math and physics oriented) that is both easy to read and concise (i.e. no title pages), and yet is ...
0
votes
1answer
83 views

The right way of forcing a long table in place

I was wondering what is the right way to include a long table in between pages? I have a table that is an A4 page long, if I use \begin{table}[h] it pushes the table to the very end of the document, ...
1
vote
0answers
70 views

Photo formatting [closed]

Why my code is not supporting when I insert the image? Here the code \documentclass[12pt,a4paper]{article} \usepackage{amsmath}\usepackage{amssymb} \usepackage{graphicx} \usepackage[left=1.25in, ...
4
votes
2answers
232 views

Making the languages not bold in moderncv

I'm writing my CV with the moderncv package and I'd like the un-bold the text in front of each language. In the following example, "Spoken" and "Barely Spoken" are bold, which I don't like. I ...
3
votes
1answer
117 views

Print from A4 to A0

I am a math teacher and am working on a brochure for my students, but I'm doing this aquivo in A0 size, how can I do to change to A4 without unconfigure the page. Excuse my lack of knowledge in Latex. ...
0
votes
0answers
72 views

Sections running off page

I have a long list of sections and subsections like so \chapter{Thin Lenses} \section*{Aim} \section*{A. Types of Lenses} \subsection*{Prediction} \subsection*{Observation} \subsection*{Explanation} ...
5
votes
1answer
160 views

the command \par does not work?

I have this code: \documentclass[8pt,a4paper]{article} \newcounter{conto} \setcounter{conto}{\time} \usepackage{lmodern} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{amssymb} ...
5
votes
3answers
241 views

Configuring footnote position and spacing

(A) How do I shift the footnote vertically down 1 mm or so? (B) I want to introduce some additional space in between one foot note and the next one, and between the first footnote and the line that ...
5
votes
1answer
100 views

Title formatting with graphics

I am trying to achieve this look for my chapter titles: To achieve this formatting I use titlesec package like this : \titleformat{name=\chapter}[hang] ...
4
votes
1answer
359 views

How to write a non-today date in latex with localization formatting?

I've tried googling around and all I have found is a lot of example on how to format \today. But that isn't what I want. Instead, I want a way to format historical dates based on the localization ...
2
votes
3answers
137 views

Blank Column in the left part of the document

I would like to reproduce the code from the output shown in the picture. \documentclass[a4paper, 11pt]{article} \pagestyle{empty} \usepackage[utf8]{inputenc} \usepackage[english, russian]{babel} ...
4
votes
1answer
304 views

Set author font in scrartcl

I've got a document using the scrartcl and fontspec packages, like so: \documentclass[a4paper]{scrartcl} \usepackage{fontspec} I'm setting the fonts using the following: ...
5
votes
0answers
121 views

Can you use LaTeX packages in ConTeXt/emulate ConTeXt in LaTeX?

Is it possible to use LaTeX packages in ConTeXt? I want to know because I'd like to use ConTeXt's greater formatting faciliies but I also want to use several LaTeX packages (crossword and xskak in ...
10
votes
1answer
337 views

How can I mimic Griffiths' electrodynamics textbook?

This is such a beautiful textbook; very dear to me. I think it has a great font - which I know is Times New Roman. But somehow, I can't even get close to it. One of the main obstacles is making the ...
0
votes
0answers
58 views

Footnote horizontal spacing of text within footnotes [duplicate]

I'm having a problem with some of my footnotes. Many of them which span multiple lines have this odd spacing between words. I've attached a screenshot of a PDF for a better explanation. In this you ...
3
votes
1answer
74 views

Define new align environment based on the old one

I am aware that there are plentiful similar questions, but since (even after several reading) I don't understand the the answers, I am unable to apply them to my problem. I simply want to define a ...
2
votes
1answer
115 views

Changing section heading style

I would like to change the section/subsection style of my LaTeX document. The following is an example of what I would like: 3. Methodology and data: An explanation (Level 1. 12 font. In bold. Period ...
6
votes
1answer
81 views

Prose Statement of Formulas

How can I write a prose statement for a particular formula. In other words, I would like to write CV = the standard deviation/mean x 100 so that "standard deviation/mean" would appear like a ...
1
vote
3answers
218 views

Chess Opening Document

I am trying to make a PDF with Chess Openings. Before I used skak but now I am converting it to texmate. I want to put the mainline in bold as centered text. I also want the diagrams centered. At this ...
1
vote
1answer
191 views

Table of Contents Modification: How to change fonts from bold to normal?

I am writing my dissertation and for that, I am using a style file that originally was created by Georgia Tech, but later on, it was modified by different students at my school. The problem I ...
1
vote
1answer
68 views

Biblatex formatting, seek formatting Bibliography, but not in body

I am seeking to format certain components of my bibliography (say author names in a different color), however, the formatting is also applying to citations used in the body of the document. In the ...
1
vote
1answer
74 views

mysterious 0 when using \formatdate

I'm writing my resume using a template and I wanted my some of the dates to be presented as e.g. 14th October I got it displayed like that using. \usepackage[UKenglish,nodayofweek]{datetime} and ...
5
votes
2answers
140 views

Change size and position of subscript (like double subscript)

I'm writing 'cause I would like to know if there's an automatic way (like something to put in the preamble) to make the subscript behave as double subscript: for example if I write something_a it ...
0
votes
0answers
68 views

Creating “solution” sectioning - page break problem

I want to create my own sectioning, which counts and displays solutions to the problems, e.g. 1.1 Kinematics 1.1 Solution to problem 1.1 1.2 Solution to problem 1.2 1.3 Solution to problem 1.3 ...
7
votes
3answers
655 views

Write more beautiful math equations, like a professional book

I want to write math equations more "beautiful". My equations are shown as follows: The vector looks ugly and disproportionate. And I like that they look it this way: The vector looks ...
4
votes
1answer
104 views

Why am I getting a “perhaps a missing \item” error in my custom epigraph environment?

I have tried to customised a new environment for epigraphs in a book. This page should have no fancy headers or anything alike. It should only have a list of one or more epigraphs. To that end I am ...
3
votes
2answers
180 views

titlesec troubles

I am working on a document that will consist of many sections and subsections. I want to have a table of contents per section. I am using titlesec, titletoc and titleps. I have the following MWE: ...