Tag Info

New answers tagged

1

Quickly defining a new package to keep the preamble clean. You now have the command \emphchapter taking a mandatory argument, and an optional for the toc if needed. There is a starred variant as well, setting an unnumbered chapter with indent to the toc. After loading the package, you can use \setkomafont{emphfont} or addtokomafont{emphfont} to format the ...


5

This is the basics, adjust to suit. \documentclass[11pt, twoside=semi, titlepage]{scrreprt} \usepackage[top=2.5cm, bottom=2.5cm, left=6cm, right=2cm, heightrounded, marginparwidth=3.5cm, marginparsep=0.5cm]{geometry} \usepackage{xcolor} \renewcommand*{\othersectionlevelsformat}[1]{% \makebox[0pt][r]{% \fcolorbox{blue}{blue}{\color{white}\csname ...


0

Another possibility would be patching the orignial abstract environment to use quote instead of quotation. \documentclass[twoside,parskip=half,numbers=noendperiod,abstract=true]{scrartcl} \usepackage{etoolbox} \patchcmd{\abstract}{\quotation}{\quote}{}{} \title{Title} \subtitle{Subtitle} \author{killthepixelnow} \date{} \usepackage{blindtext} ...


5

Since you are using a KOMA class, with the parskip=half option, the proper way is to use something like \KOMAoptions{parskip=half} for the abstract (use full, or any of the other available options instead of half, according to your needs): \documentclass[twoside,parskip=half,numbers=noendperiod,abstract=true]{scrartcl} \usepackage[british]{babel} ...


4

Use \noindent and \vspace{<dimension>} judiciously. (You can also use \medskip, or\bigskip instead of \vspace{..}) Change 1em as you feel. \begin{abstract} \noindent Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec vel sem enim. Morbi venenatis nisl vitae elit porttitor maximus. Nullam bibendum nunc iaculis, venenatis nibh eu, gravida ...


0

Use this in the Preamble \usepackage[labelfont=bf]{caption} %% for the figure and Tables Catption%% \usepackage[textfont=bf]{caption} %% For the Text of the figures and Tables%%


0

Here is a solution with titleps. I define a wideoddhead pagestyle that does what you want (if I understood well) without having to change margins. I had to modify the sectrion formatting. Also simplified your preamble: \documentclass[10pt, letterpaper, twoside]{article} \usepackage[vmargin=0.5in, left=1.25in, right=0.75in, headheight=0.75in, headsep=12pt, ...


0

The section number is placed in the left margin, so it is not going to align with the header, unless you redefine one or both of them. I'm not sure what you mean when you say "it gets really messed up for two-sided documents." If you don't want the left and right margins to have different values, change the documentclass line option to oneside or reset the ...


2

Here is an example of using mdframed to highlight the answer portion: References: You might want to try some of the other alternatives in Environments for visually setting text apart Code: \documentclass[12pt]{article} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage[english]{babel} \usepackage{microtype} ...


2

The changepage package provides this function. The simplest way is to use the adjustwidth environment. You have to specify an amount by which to increase the size of the margins, which you can calculate based on the textwidth, your default margins, and the desired textwidth of the new narrow block. One problem is defining that narrower textwidth based on ...


1

If I understand the problem, you are worried about the warnings/errors regarding labels. LaTeX Warning: Label `eqn:addition' multiply defined. One way to avoid that is to redefine \label and \ref just before your new content with something like: \let\OrigLabel\label \let\OrigRef\ref \renewcommand{\label}[1]{\OrigLabel{NEW##1}}% ...


3

\documentclass[12pt, letterpaper]{book} \usepackage{imakeidx} \makeindex[name=cat, title=Category, columns=1] \makeindex[name=type, title=Type of Dish] \newcommand\foo[1]{} \newcommand\textbfz[2]{\textbf{#1}} \begin{document} \index[type]{Casual@\textbfz{Casual}|foo} %Want this in bold and no page number \index[type]{Quick@\textbfz{Quick}|foo} ...


3

Here's a \backnot command: \documentclass{article} \usepackage{graphicx} \makeatletter \newcommand\backnot{\mathrel{\mathpalette\back@not\relax}} \newcommand\back@not[2]{% \makebox[0pt][l]{% \sbox\z@{$\m@th#1=$}% \kern\wd\z@ \reflectbox{$\m@th#1\not$}% }% } \makeatother \begin{document} $a\not= b_{\not=}$ $a\backnot= b_{\backnot=}$ ...


10

Something like this? \documentclass{amsart} \usepackage{amsmath} \newcommand\mynot[1]{% \mathrel% {% \ooalign{\hidewidth$\backslash$\hidewidth\cr$#1$}% }% } \begin{document} \[ a\mynot{=}b\] \[a\mynot{\geq}b\] \end{document}


2

You can use siunitx with it's \num macro and output-decimal-marker option: \documentclass{article} \usepackage{calculator} \usepackage{calculus} \usepackage{siunitx} %% or make it global by \usepackage[output-decimal-marker = {,}]{siunitx} \newcommand\teo{3} \newcommand\job{,5} \begin{document} \MULTIPLY{\teo}{340}\W \MULTIPLY{\job}{5605}\WW ...


6

This is not related to calculator and calculus packages. There are several utilities to print decimal numbers with comma as decimal separator. Try, for example, the numprint package: \documentclass{article} \usepackage{calculator} \usepackage{calculus} \usepackage{numprint} \newcommand\teo{3} \newcommand\job{,5} \begin{document} ...


1

The mathastext package may do what you're looking for. The package's user guide states that mathastext's basic aim is to have the same font for text and mathematics. \documentclass{article} \usepackage{mathastext} \begin{document} $x=\gamma*4$ \end{document}


3

It is correct to use \cftpartname to add "Part" before the names. But one should use \cftpartfont to control font settings for the part lines in the table of contents. (These are described in the memoir manual, texdoc memoir, p. 151.) It is also possible, if desired, to use \cftpartpagefont to apply the same color to the page number for each part. ...


2

One way to do this would be to use the environ package to save the \BODY of the document into a \savebox which saves the text passed to the \Slide macro in a list and output the list at the end. The following \begin{document} abc \Slide{Slide 1 content} ghi \Slide{Slide 2 content} jkl \end{document} yields: References: How keep a running ...


3

You can use the lscape package: Code: \documentclass{article} \usepackage{lscape} \usepackage{lipsum} \begin{document} \lipsum[1] \begin{landscape} \lipsum[1] \end{landscape} \end{document}


3

Use multline* instead. \documentclass{article} \usepackage{amsmath} \begin{document} \begin{multline*} \left(\left(\frac{1}{2},\frac{1}{2}\right)+ \sqrt{2} \begin{pmatrix} \cos(\pi/4) & \sin(\pi/4) \\ -\sin(\pi/4) & \cos(\pi/4) \end{pmatrix}, \sqrt{2} \begin{pmatrix} \cos(\pi/4) & ...


3

On unix(like) systems you can use texdoc comment, for example, to read the package documentation. If you read the documentation for the comment package then on page 2 you will find: Special comments are defined as \specialcomment{〈name〉}{〈before commands〉}{〈after commands〉} where the second and third arguments are executed before and after each ...


3

Immediately after creating the theorem, change the way the theorem number is displayed via a \renewcommand: \renewcommand{\thethm}{\thechapter-\arabic{thm}} Here is a complete minimal example: \documentclass{report} \usepackage{amsthm} \newtheoremstyle{theorem} {1em} % Space above {} % Space below {\itshape} % Body font {} % Indent amount % Indent ...


4

Provided a loose usage of the word exactly : \documentclass[a4paper]{article} \begin{document} Healthcare Management \dotfill ORACLE \\ Healthcare Management \dotfill MICROSOFT \end{document} should do the trick. For the white space at the end of MICROSOFT I suppose you could use \hspace{10cm}.


2

Without any code and with the relevant parts of the image smudged out it is very hard to give advice, but the operating system is more or less always irrelevant to TeX. What might be relevant is that you have a newer or older version of some package on the different machines, adding \listfiles to the preamble and comparing the generated lists should make it ...


3

The default layout of the ToC for chapters (starred or not) under memoir is to have no dots. This is set internally by \newcommand{\cftchapterdotsep}{\cftnodots} If you want dots, it's best to set it to match that of the sectional unit dots, which is the same as \cftdotsep. As such, using \renewcommand{\cftchapterdotsep}{\cftdotsep}% Chapters should use ...


0

I think this does what you require. \documentclass[12pt]{article} \usepackage{fancyhdr} % Enhanced control over headers and footers \usepackage[T1]{fontenc} % Font encoding \usepackage{mathptmx} % Choose Times font \usepackage{microtype} % Improves line breaks \usepackage{setspace} % Makes the document look like horse manure ...


2

For consistency sake, I would maintain the font size to be similar to the surrounding text (and math). You can make the contents wrap into multiple lines by using a \parbox of fixed width that is [t]op-aligned: \documentclass{article} \usepackage{amsmath,lipsum} \begin{document} \lipsum[1] \begin{align*} f(x) &= ax^2 + bx + c \quad \text{some short ...


1

I think there may be some confusion about the purpose and structure of the Main and optional arguments of the \bibitem macro. The main argument of \bibitem (the material in curly braces) -- here: EnviroTrack -- is the "key", i.e., what one writes as the argument of a \cite (or \citet, \citet*, etc) command. The optional argument of \bibitem -- the ...


0

It is very possible that not be the best form, but this works in the form that the questions suggests. The bibentries are generics. The code is comments. Read it, please. MWE: \documentclass[a4paper,titlepage,10pt,twoside,openright]{report} \begin{filecontents}{IEEEexample.bib} @inBook{Wolff1962, Title = {Philosophia prima sive ...


2

You should not use that \\ too much. Typically, you should not use it at all in normal text. You have to decide, where a new paragraph starts (blank line in code) and where it shouldn't (no blank line or a %). A new paragraph will always get that indent (in front of "Define the size...") to make that new paragraph visible. If you do not want that in this ...


2

Like the others I prefer and would highly recommend the geometry package, (note that I have also included the showframe package which shows the margins). MWE: \documentclass{article} \usepackage{geometry} %\usepackage{showframe} %This line can be used to clearly show the new margins \newgeometry{vmargin={15mm}, hmargin={12mm,17mm}} % set ...


2

It appeared that removing the ulem package, which I once used for strikeouts, did the trick. It now typesets with the expected format.


4

My example shows how to do this task without any LaTeX packages. Suppose, we have the file names.csv in the format shown in Kumars answer. % in preamble: \newread\infile \def\printletters #1 {\bgroup \endlinechar=-1 \openin\infile=#1 \read\infile to\tmp \printlettersA } \def\printlettersA{\ifeof\infile \egroup \else \read\infile to\tmp ...


2

Shamelessly parasitic on Harish Kumar's data, this solution uses textmerg for the merge: \documentclass[a4paper]{article} \usepackage[T1]{fontenc} \usepackage{textmerg}% \usepackage{filecontents} \begin{filecontents*}{names.dat} Mr Sreeram P. 12 Mr Rajaram K. 20 Mr Dhanraj Julien 35 Ms Lalitha S. ...


8

Here is a starting point using datatool. I won't discuss the design of the check (layout) as it is a candidate for a separate question. \documentclass{article} \usepackage[a4paper,textheight=5in,left=1in,right=1in]{geometry} %% 5in only for demo \usepackage{xcolor}% \usepackage{adjustbox} % \usepackage{filecontents} \begin{filecontents*}{names.csv} ...


3

You can define tag styles with the \newtagform and \usetagform commands, from the mathtools package. I also simplified your code; actually, you have only three alignment points (remmember that k alignment points normally require 2k – 1 ampersands). On another hand, you have a correct horizontal spacing adding {} rather than \;: \documentclass{article} ...


2

Below I've updated \maketag@@@ to insert \tagfont that you can manipulate via \renewcommand: \documentclass{article} \usepackage{amsmath} \makeatletter \def\maketag@@@#1{\hbox{\m@th\normalfont\tagfont#1}} \makeatother \newcommand{\tagfont}{} \begin{document} \begin{alignat}{5} 2c_1&\;+\;&5c_2 &\;=\;& 1\\ ...



Top 50 recent answers are included