8
votes
3answers
174 views

Is it safe to “renewcommand” \SS? (Which packages use \SS command?)

I've tried to set \newcommand{\SS}{\mathcal{S}} in the preamble but I've discovered that this command is already defined. So, I tried native command on my code and I've found that it is a "simple" ...
1
vote
1answer
61 views

Next Sibling Operator

I'm very new to TeX, so I'm not exactly sure what the right terminology is for what I'm asking, so please bear with me! I have a bunch of LaTeX books that I'm converting to HTML via HeVeA. In the TeX ...
2
votes
4answers
91 views

Define variables holding a percentage

I would like to define some variables in a tex document. For example, I write in .tex something similar as: Our tool succeeds to validate x samples out of all the y samples, thus its success ratio is ...
3
votes
1answer
89 views

Define numeric variables

I would like to define some variables in a tex document. For example, I write in .tex something similar as: Our tool succeeds to validate x samples by Method A, and y samples by Method B. Thus its ...
11
votes
3answers
185 views

Easy command or package for properly formatted integrals?

I like to format my integrals so that there is less space between the integral sign and the integrand, more space between the integrand and differential, and so that the differential is upright. ...
5
votes
1answer
114 views

Latex \newcommand with python code inside

I'm extremely new to Latex. I'm using python package to insert graphics in a loop. What I can not understand is how I can transform this code \documentclass{article} \usepackage{python} ...
9
votes
2answers
129 views

Conditionally use package and define command

I'm creating a class which should define a command if some package is available: \IfFileExists{eforms.sty}{ \usepackage[xetex]{eforms} \everyTextField{\textFont{GaramondNo8}\textSize{12}} ...
2
votes
0answers
117 views

Problem with overwriting diagram files using feynmf

I've just installed feynmf package and tried working with a standard example. I'm working with MikTeX 2.9 on Windows. The compilation worked fine and I got the diagram in the PDF, but when changing ...
2
votes
0answers
281 views

ProvidesPackage and usepackage

I have seen papers containing a command \ProvidesPackage. Is it different than \usepackage? What is the difference between \ProvidesPackage and \usepackage?
1
vote
2answers
286 views

Customize ModernCV

For my resume I'm using the great moderncv, but I'd like to customize it a little. For example I'd like to reduce the heigth of the blank space after the title. In moderncvstyleclassic.sty, I ...
6
votes
1answer
109 views

Is there a specific rule on how to choose package/class names?

Preamble I recently started the "custom package writing" path, which at first I found very interesting because it helped me to define standard callings of packages/commands that would have occupied ...
5
votes
1answer
57 views

Convention for packages that modify commands of other packages

I want to write a package that modify a command of another package. Let's say for example the command is \includegraphics from the graphicx package so in mynewpack.sty file I have something like that: ...
5
votes
1answer
69 views

How to choose between arguments and keys when defining a macro

I would like to know if there are guidelines for package writers regarding the interface preferred for passing arguments to macros. Suppose I am writing a package for typesetting a titlepage. There ...
5
votes
1answer
191 views

Including .tex files that need a different style file than the main text

EDIT: Substantial edit of the original version has been done to clarify the question. Background I've written two small python package manuals with sphinx (http://sphinx-doc.org/) a program that ...
8
votes
0answers
752 views

How to automatically generate Venn diagrams given the inclusion relations? [closed]

I'm writing a paper about classes of formal languages, and I'd like to have a diagram showing their heirarchy. Something similar to this (from Wikipedia:) Is there a LaTeX package which, I can give ...
9
votes
2answers
167 views

Put all package options into one command

The title might not be perfect, but what I want to achieve is: Inside my own package mypackage.sty, I would like to have a command, say \allpackageoptions, which should have stored the entire package ...
1
vote
1answer
85 views

import in \newcommand in my package produces an error

I have written and installed my own package gym.sty. In that package I defined \newcommand{\loadgym}{\import{sagegym}} since I need to execute some commands after \begin{document} for the package ...
7
votes
2answers
3k views

Shortcuts and/or user-defined shortcuts for math symbols in LaTeX?

I am very new to being able to use LaTeX to type up mathematical papers, and I just got my "system" set up. Currently I have installed TexWorks, and MikTex, and I have put together a 'hello world' ...
6
votes
1answer
209 views

“No room for a new \read” with writing a journal

I'm fairly new to TeX and learning as I go. I am trying to keep a journal in LaTeX. I'm using the solution provided at Using LaTeX to keep a diary . It's essentially a setup where each day's entry is ...
5
votes
1answer
97 views

Handle currencies correctly depending on language conventions

Is there a standard way of handling currencies? Example: in American, you'd say "$2 a piece" in French, you'd say "2$ pi├Ęce" I'd like to be able to write \somecommand{dollars}{2}, that would ...
4
votes
1answer
565 views

XeLaTeX logo with pdfLaTeX? [duplicate]

Possible Duplicate: How to write (La)TeX (with braces) [or any other TeX-related logo] I try to typeset the XeLaTeX logo in a document that has to be run through pdfLaTeX (for a journal). ...
3
votes
0answers
67 views

Is there a package or scripted solution to generate the program for scientific conferences [duplicate]

Possible Duplicate: Is there a LaTeX package for conference event programs? I am looking for a solution to generate the program to a scientific event with multiple conferences and ...
2
votes
1answer
202 views

Use the catchfile package to preprocess an input file character by character?

Is it possible to read a file using the \CatchFileDef or \CatchFileEdef commands from the catchfile package and then output its exact copy to another file? What about input and output encoding? Do ...
4
votes
1answer
67 views

Hook into \input (or any underlying command) in order to allow transparent preprocessing

Which command would be most suitable to be hooked in order to preprocess input before it is passed to TeX? Input file: \begin{document} \input{a} \end{document} Seen by TeX (after a file ...
28
votes
3answers
2k views

Nicely force 66 characters per line

I would like to have "something" (a package, a trick, a macro, ...?) that makes it possible for me to nicely play with the margins (or the layout) in order to set the average or typical number of ...
1
vote
0answers
86 views

What package \isp macro from? [closed]

What package macro \isp comes from? As I understood, there is not way not get such infomation quick, reliable way. I hope I am wrong. EDIT: My problem is that I have legacy code, that used a very ...
6
votes
1answer
309 views

How to create a command to load my own new .sty file

I have created my custom class myclass.cls and I've put it into the BASE folder on MiKTeX dis. (C:\Program Files\MiKTeX 2.9\tex\latex\base). Then I have created my xxx.sty file with some additional ...
7
votes
3answers
1k views

LaTeX command with optional arguments

While writing lecture notes from statistical physics I found out, that I am often writing very similar long LaTeX sequences like \frac{\partial }{\partial <foo>} \frac{\partial ...
4
votes
1answer
2k views

Vertical addition and multiplication and long division

Is there in existence packages that recreate the following environments: Some of the above have been discussed like in the How to present a vertical multiplication but what I am interested in is if ...
1
vote
2answers
502 views

How to disable package used by external document?

Doxygen uses its own doxygen.sty style file, but I'd like to keep the style of my document where I want to put the Doxygen's output. So I'd prefer to somehow to turn of its settings. For example, ...
27
votes
3answers
44k views

How can I manually install a LaTeX package (Debian/Ubuntu Linux)? [duplicate]

Possible Duplicate: How do I install an individual package on a Linux system? The Debian/Ubuntu archives typically include assemblies of many LaTeX packages for convenience of downloading ...
19
votes
1answer
249 views

Defining multiple shorthands quickly

Most of the bloated preambles I see have dozens of lines like \newcommand{\Acal}{\mathcal{A}} \newcommand{\Bcal}{\mathcal{B}} %... \newcommand{\Gcal}{\mathcal{G}} While I can easily code a macro to ...
1
vote
3answers
1k views

Which IDE/Editor and “compiler” do you use for TeX/LaTeX? - How do macros work? [closed]

I've been using LaTeX for a few weeks now, with TeXworks, and have found it quite frustrating. I'm running MiKTeX 2.8 on Windows 7 x64 with TeXworks 0.3. Reasons why I find TeX frustrating: Very ...
8
votes
3answers
4k views

Macro or package for typesetting “LaTeX” (the name)?

I just realized there's a LaTeX package for printing the text of "lorem ipsum". Surely then, there's also a macro / package for writing "LaTeX" (with the proper super-/subscript) in a document. But ...
2
votes
2answers
226 views

Setting a common prefix for macro names

Is it possible to set a common prefix for all macros in a package? Something like: \def\prefix{mypackage} \newcommand{{\prefix}macroone}{ ... } % does not work, of course ...
2
votes
2answers
339 views

Combine expandafter, setlength, csname and define@key

I try do define a command \tes@define@key@length. Everything work but when I use the following line: \expandafter\setlength\csname test@#1@length\endcsname{\csname testl@#1\endcsname}% I get an ...
49
votes
5answers
9k views

What's the difference between \RequirePackage and \usepackage?

I understand that "the convention is to use \RequirePackage in a package or class and \usepackage in a document", but apart from that, is there any practical difference between the two commands? (I ...
3
votes
1answer
211 views

Basic xparse does not seem to be working

I can't seem to get basic xparse working. This seems like a bug, but this example feels so basic that I feel that there must be something I am not understanding about how to use this. Here is my test ...
13
votes
1answer
772 views

How to patch a package

I have a document that uses symbols both from the marvosym package as well as the eurosym package. There are two commands that clash and I get an error message (due to \newcommand being used and ...
10
votes
3answers
1k views

How to use \bigtimes without pain

I've been fighting with mathabx lately and it's not really worth my time, so I tried switching to MnSymbol which also modifies some of my regular symbols. Is the best solution just to make my own ...
23
votes
5answers
593 views

How to find a package name by a command name?

Often I'm trying to use a command in my document and it doesn't compile, because I haven't included the package I need for it. Of course, I know, that I can try to google it, but Google often finds ...