<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://stacky.net/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=152.3.43.176</id>
	<title>stacky wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://stacky.net/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=152.3.43.176"/>
	<link rel="alternate" type="text/html" href="https://stacky.net/wiki/index.php?title=Special:Contributions/152.3.43.176"/>
	<updated>2026-04-13T11:40:55Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.40.1</generator>
	<entry>
		<id>https://stacky.net/wiki/index.php?title=TeXnical_notes&amp;diff=1257</id>
		<title>TeXnical notes</title>
		<link rel="alternate" type="text/html" href="https://stacky.net/wiki/index.php?title=TeXnical_notes&amp;diff=1257"/>
		<updated>2013-06-10T15:52:44Z</updated>

		<summary type="html">&lt;p&gt;152.3.43.176: fixed link to aaron lauda&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Sometimes I find a solution to a TeXnical problem, and I think everybody should know about it. Some of these things are totally obvious, but (as far as I know) non-standard.&lt;br /&gt;
&lt;br /&gt;
You may also want to check out my [[advice on real-time TeXing]].&lt;br /&gt;
&lt;br /&gt;
==BibTeX without a separate .bib file==&lt;br /&gt;
&lt;br /&gt;
[http://stacky.net/files/selfcontainedBibTeX.dvi dvi] [http://stacky.net/files/selfcontainedBibTeX.tex tex]&lt;br /&gt;
&lt;br /&gt;
$Bib\TeX$ has the nice feature that it makes your bibliography&lt;br /&gt;
nicely; the entries are all formatted the same way, and it is&lt;br /&gt;
easy to change that format. However, it is annoying that you&lt;br /&gt;
have to have a separate &amp;lt;code&amp;gt;.bib&amp;lt;/code&amp;gt; file to contain all your&lt;br /&gt;
bibliography entries. Fortunately, it is not too hard to build&lt;br /&gt;
the &amp;lt;code&amp;gt;.bib&amp;lt;/code&amp;gt; file into the &amp;lt;code&amp;gt;.tex&amp;lt;/code&amp;gt; file. To illustrate,&lt;br /&gt;
the source of [Ant06] is (sorta) included below.&lt;br /&gt;
Note that you have to run $\LaTeX$, $Bib\TeX$, $\LaTeX$, $\LaTeX$, as&lt;br /&gt;
usual when you use $Bib\TeX$.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
\documentclass{article}&lt;br /&gt;
\usepackage{verbatim}&lt;br /&gt;
\begin{document}&lt;br /&gt;
Bib\TeX\ has the nice feature that it makes your bibliography&lt;br /&gt;
nicely; the entries are all formatted the same way, and it is&lt;br /&gt;
easy to change that format. However, it is annoying that you&lt;br /&gt;
have to have a separate \verb|.bib| file to contain all your&lt;br /&gt;
bibliography entries. Fortunately, it is not too hard to build&lt;br /&gt;
the \verb|.bib| file into the \verb|.tex| file. To illustrate,&lt;br /&gt;
the source of \cite{this_file} is (sorta) included below.&lt;br /&gt;
Note that you have to run \LaTeX, Bib\TeX, \LaTeX, \LaTeX, as&lt;br /&gt;
usual when you use Bib\TeX.&lt;br /&gt;
&lt;br /&gt;
   %%%%%%%%%%%%%%%%%%%%%%%%%%%&lt;br /&gt;
   %%% main text goes here %%%&lt;br /&gt;
   %%%%%%%%%%%%%%%%%%%%%%%%%%%&lt;br /&gt;
&lt;br /&gt;
 \bibliography{\jobname}&lt;br /&gt;
 \bibliographystyle{alpha}&lt;br /&gt;
&lt;br /&gt;
 \openout0= \jobname.bib&lt;br /&gt;
 \write0{&lt;br /&gt;
   @book {this_file,&lt;br /&gt;
       AUTHOR = {Anton},&lt;br /&gt;
        TITLE = {This document},&lt;br /&gt;
         YEAR = {2006},&lt;br /&gt;
   }&lt;br /&gt;
   %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%&lt;br /&gt;
   %%% more bib entries go here %%%&lt;br /&gt;
   %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%&lt;br /&gt;
 }&lt;br /&gt;
\end{document}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;References&#039;&#039;&#039;&amp;lt;br&amp;gt;&lt;br /&gt;
[Ant06] Anton. [http://stacky.net/files/selfcontainedBibTeX.tex &#039;&#039;This document.&#039;&#039;] 2006.&lt;br /&gt;
&lt;br /&gt;
==How to draw the Fox-Artin wild arc with pstricks==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;code&amp;gt;&amp;lt;pre&amp;gt;&lt;br /&gt;
\documentclass{article}&lt;br /&gt;
\usepackage{pstricks}&lt;br /&gt;
\usepackage{multido}&lt;br /&gt;
\begin{document}&lt;br /&gt;
 \[\begin{pspicture}(-7.6,-.5)(7.32,2.5)&lt;br /&gt;
    \newdimen\totaljump     % This measures where the orgin is&lt;br /&gt;
    \newdimen\jumpinterval  % This measures how much the origin moves each time&lt;br /&gt;
    %%%%% First we draw the left hand side. Because we are utilizing borders, we have %%%%%&lt;br /&gt;
    %%%%% to draw from left to right, so compute by hand what the unit should be.     %%%%%&lt;br /&gt;
    \psset{unit=0.17293822569mm,border=.05,linewidth=.03}&lt;br /&gt;
    \totaljump=-75mm&lt;br /&gt;
    \jumpinterval=0.17293822569mm&lt;br /&gt;
    \multido{}{20}{&lt;br /&gt;
      % Move the origin to the appropriate place %%%%&lt;br /&gt;
      \psset{origin={\totaljump,0}, unit= 1.25, border=.05, linewidth=.03}&lt;br /&gt;
      % Draw a piece of the curve&lt;br /&gt;
      \pscurve(-.1,.1)(-.2,.3)(0,1.5)(1,.7)(2.3,.3)(2,-.05)(1.1,-.2)(1,-.1)&lt;br /&gt;
      % Scale the jumpinterval by .8 and increment totaljump&lt;br /&gt;
      \multiply\jumpinterval by 5 \divide\jumpinterval by 4&lt;br /&gt;
      \advance\totaljump by \jumpinterval&lt;br /&gt;
    }&lt;br /&gt;
    %%%% Now we draw one piece of the curve in the middle %%%%&lt;br /&gt;
    %%%% to get the two ends to match up nicely.          %%%%&lt;br /&gt;
    \psset{unit=1.5cm,border=.05,linewidth=.03}&lt;br /&gt;
    \pscurve(-.15,.12)(-.2,.3)(0,1.7)(1,.7)(1.8,.3)(1.6,-.05)(1.1,-.2)(.95,-.15)&lt;br /&gt;
    %%%% Now draw the right hand side %%%%&lt;br /&gt;
    \psset{origin={12mm,0}}&lt;br /&gt;
    \totaljump=12mm&lt;br /&gt;
    \jumpinterval=12mm&lt;br /&gt;
    \multido{}{20}{&lt;br /&gt;
      \advance\totaljump by \jumpinterval&lt;br /&gt;
      \multiply\jumpinterval by 4 \divide\jumpinterval by 5&lt;br /&gt;
      \pscurve(-.1,.1)(-.2,.3)(0,1.5)(1,.7)(1.6,.3)(1.4,-.05)(1.1,-.2)(.9,-.1)&lt;br /&gt;
      \psset{origin={\totaljump,0}, unit= .8, border=.05, linewidth=.03}&lt;br /&gt;
    }&lt;br /&gt;
 \end{pspicture}\]&lt;br /&gt;
\end{document}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&amp;lt;/code&amp;gt;&lt;br /&gt;
[[File:Fox-artin.png]]&lt;br /&gt;
&lt;br /&gt;
==Placing labels on arrows in XY-pic==&lt;br /&gt;
(I learned this trick from [http://www-bcf.usc.edu/~lauda/Aaron_Laudas_Page/Home.html Aaron Lauda]; I haven&#039;t seen it documented anywhere)&lt;br /&gt;
 \xymatrix{asdfasdf \ar[r]^{f} &amp;amp; a }&lt;br /&gt;
produces the label &amp;quot;f&amp;quot; in a stupid place, half-way between the centers of the two entries, instead of where you&#039;d like it to be, half-way along the arrow. One way to handle this is to do something like &amp;lt;code&amp;gt;\ar[r]^(.7){f}&amp;lt;/code&amp;gt; but that is fairly unsatisfying because you have to calibrate the (.7) by eye. There is another way, which is to use&lt;br /&gt;
 \ar[r]^-{f}&lt;br /&gt;
which will automatically place the label &amp;quot;f&amp;quot; half-way along the arrow. If you want the label .7 of the way &#039;&#039;along the arrow&#039;&#039;, you can do &amp;lt;code&amp;gt;\ar[r]^-(.7){f}&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== {{todo|should really add some stuff about \show here}} ==&lt;/div&gt;</summary>
		<author><name>152.3.43.176</name></author>
	</entry>
</feed>