Wednesday, November 19, 2003

I Congratulate You In Latin

feet figure without appearing

I updated my article I want my figure here
"to include information on how to put a figure caption (caption

) outside a contained environment . The method explained before is not as good as the one I recommend now: use the package capt-of or captdef

Tuesday, November 11, 2003

Kates Playground Watch Free

Creating EPS figures from Windows

This is a question that makes me very often. And the answer is long, I decided to write here once and for all. The question may appear in various forms, being one of the most frequent How I can include a chart in Excel LaTeX?
Whether an Excel chart and any other graphics generated with any Windows program, the procedure is the same (although the Excel chart often has a particular problem I will explain later). It's about having installed a PostScript printer driver (although we have no real printer) and use that driver to "print to file." Thus, the code that is sent to the printer (PS) is stored in a file that can be used as a figure in LaTeX. Unfortunately,

all printer drivers windows that I could prove (even the "official" Adobe) generate EPS bad that needs to be retouched later. I describe the process.

install PS printer. I will assume you have installed Windows XP. In other versions of Windows the process is similar.
(print to file) in the printer model choose Apple Color LaserWriter 12/600 . In fact, any PostScript printer works, but I've always used that and have never had problems, so why change? Finally, do not put it as the default printer! Once installed the printer from the panel printer management in the new press the right button and choose "Properties." In the window that comes in the "General" tab is a button that says "Printing Preferences." Click it, and leaving the window, click "Advanced." This will open a new window which presents a view as a "tree" with the printer options. In the segment called "Document Options", is a branch called "Postscript Options", and it is an option called "PostScript Output Option", which by default windows has been set to "Optimize for speed." You should change that to "Encapsulated Postscript (EPS)." generate PS file. Go to your favorite drawing application. Click the picture and when you list, print it out. When you exit the Print dialog, choose the Apple printer we have installed in the previous step, and hit print. At that time I asked for a name for the file to be generated. Give the name of your choice, and remember what folder you saved it. In a few seconds Windows has finished printing, and file you specified will figure in EPS format (although some Windows versions insist on putting the file extension . Prn , the content is EPS, so you can rename without problems.) If the drivers did not have BoundingBox. The BoundingBox

is a rectangle that indicates which part of the page is what actually contains the drawing. LaTeX this information is important because it will calculate the space occupied by the figure according to

BoundingBox. But does Windows incorrectly

  1. BoundingBox equal to the entire page, so you need an extra step to fix it. Arranging
    1. BoundingBox . For this step you need Ghostview application, but if you're trying to insert LaTeX EPS figures probably already have it right?. Enough to open with ghostview
    file we created in the previous step, and you choose the "File" menu the "PS to EPS." This will create a file that (at least in theory) already have the correct

  2. BoundingBox. To verify you can display it in ghostview, enabling the "Show Bounding Box", you draw a dotted rectangle around the BoundingBox . If this rectangle includes adjusting your figure, everything is perfect. You can include this EPS in a LaTeX document. If you are going to process it with pdflatex, you must convert it to PDF, which can also be done from ghostview Other considerations. If you try to convert the chart was created with Excel, additional problems may arise due to the Excel application itself, because if you select a graphic in this application and sent to print, the result is often wrong (without drawing areas, areas black ...), so its conversion to PS will also be incorrect. The only solution I know this

    bug is to copy the chart from Excel and paste it into another application (Word, for example) from which you can print and smoothly. On the other hand, there is a program (shareware ) called wmf2eps that it helps if you have to do lots of graphics. You've proven that the previous method of printing a file, rename a result, open it in ghostview

  3. and resave it as EPS, can be tedious. Wmf2eps program simplifies the process by allowing you to select the chart in your application, copy and paste it in the program wmf2eps . Once stuck there, pressing a button will be converted to EPS. Actually this program is limited to print the chart to a PS printer (which therefore you must have installed anyway), and then fix the BoundingBox . I hope this information is helpful to someone. If you find any problem in trying to follow these steps or have questions, leave a comment on this blog.

Thursday, October 30, 2003

Hydroquinone Skin Darker



On the website of the TeX Users Group Indian there are many interesting things. Including a set of tutorials

written by its specialized equipment. The LaTeX tutorial can be downloaded as a whole "screen presentations, or in a single PDF document

  • . The contents look very interesting, but also the shape is perfect. They have also written a set of comprehensive tutorials on PSTricks, which is welcome because the original documentation of this package was not too well structured.
  • Does Abreva Work For Cold Sores?

    LaTeX Tutorial on Writing algorithms

    A new package,

    algorithm2e adds to existing algorithms to present our documents. This seems more configurable and with a more pleasant than previous solutions such as alg or algorithms / algorithmic , and a simpler interface.

    Wednesday, October 22, 2003

    Cruising Spots, Sacramento

    want my picture here

    This is a fairly common question among the rookies. How I can make a figure out in the text exactly where I want, not where you want to LaTeX? The answer most obvious is to not put the figure in an environment figure, since it is the environment who tells LaTeX that has permission to put it wherever you want. Yes, \\ includegraphics can be used without being in a figure

    , as the environment

    must carry the word Figure ", but its content is not necessarily a graph. This often surprises newcomers. However, this solution is often not satisfactory, because we need to have a standing figure, numbered and displayed on the "List Figures of the document, and all these features can only be achieved through command \\ caption , which can only occur within the environment figure (or other floating). In theory, supports the positioning I've often read the positioner [h!] is an order more blunt, but it seems that LaTeX often disobey often also (or may not be implemented in all versions of LaTeX). The case is to put a figure " here, although there is ugly, my responsibility " does not seem easy. But it's really as simple as including float package and specify the positioner For those who prefer to do things so twisted, you may add a caption anywhere text, not necessarily in an environment figure. This may be used capt-of package or packaging captdef . Both provide similar functionality, and basically use the same mechanism, so you can choose the one you like. Using capt-of , you add the figure caption writing

    \\ captionof {figure} {text} figure caption, while using captdef the command to use would be \\ figcaption {text} figure caption. Both packages are flexible and allow you to add captions to tables or other floats

    that you have defined yourself using the float package . You can use a tabular environment to ensure that the figure and the "false foot" go together.

    Tuesday, October 21, 2003

    How To Develop Guitar Calluses

    Presentations with LaTeX

    Michael Wedman has prepared a document that collects

    the currently existing solutions to generate on-screen presentations using LaTeX. It covers not only the presentation in PDF, but also in HTML and other formats. For each solution, an example, pros and cons.

    Tuesday, October 14, 2003

    Can I Take Creatine With Superpump 250

    mdwtools

    In a recent message on the list
    Laura mentioned sptex mdwtools package, which I had already thrown out long ago, but I had completely forgotten, so it has been a happy rediscovery. This package is actually a set of them. Some with utility rather dark (except for TeXpertos), others with an undoubted utility. Here's the list: at This package allows you to define your own commands, rather than starting by \\ , starting with @ . The usefulness of this oddity becomes clear when we define a named command very short, to serve as a shorthand for one with a name larger. Then you realize that most of the commands whose name consists of a pair of letters already exists (either as primitive TeX command or as latex). Or if not, there remains the question of whether there is a package that we will use later. For example, we often \\ longrightarrow and would like to abbreviate as \\ lra Will there because this command in LaTeX? Using the package at our command also allows defining macros defined by any two characters, so we can use, for example /.../ *...* as an abbreviation for \\ textbf {...} (in fact, these two examples are pre-defined to load the package at

    ). No doubt you can find interesting applications.

    • cmtt . This package fixes a problem that can occur when using modern computer teletype types ( \\ texttt {...} ) because apparently this source coding is standard and some characters may leave changed. doafter . This is one of those utilities that are meaningful only for advanced programmers TeX. I do not understand what it is :-) footnote. Here reimplements command \\ footnote to behave better than what comes with latex. In particular, the new \\ footnote

      supports verbatim text, and can be used in places where the original command was not possible (as in parboxes ) mdwlist . This is one of those little gems. Sets the list type environments (itemize , description ,...) to be more compact. It also offers several solutions to the problem that, in the environment

    • description to define the term is too long (in my opinion, the description generated by LaTeX is rather ugly.) mdwmath . This minipaquetito implements a variant of \\ sqrt
    • omits horizontal line above the operation. It also provides some mathematical symbols. mdwtab
    • is a complete reimplementation new environments and tabular array , with many interesting options. Worth reading carefully the documentation. sverb code can list "verbatim", and read from a file. It also provides a demo environment
    • showing LaTeX code with the result, ideal for writing manuals for LaTeX syntax offers a set of macros to "draw" type BNF grammar diagrams. This type of diagrams abound in the documents of the suite mdwtools

    Sunday, October 5, 2003

    When Getting High Was On A Swing In The Park

    more tags

    MetaPost has the ability to include labels (text) as part of the drawing. To order this gives the label which receives as first parameter to display text, and as second parameter the coordinates of the point where it should appear. The first parameter (the text) can be of two types: A picture
  • , which is the result of a series of drawing commands. It is unusual that this picture is the result of processing the directives BTEX / Etex . These policies cause the text between them is processed externally by TeX, and the result of that processing is inserted back into the metapost figure in the form of
  • picture. This can include formulas and texts that require special formatting. For example: label (BTEX The value of $ i $ is 3. Etex, (0,0)); The downside is that you can use variables metapost between the pair Etex / BTEX , but only words 'literal'.
  • A string , which is a sequence of characters between quotes. In this case, TeX is not used. The chain issued without more, in the default font. The advantage of this second way is that the chain can be built "dynamically", based on the content of other variables metapost. For example, the string may be the concatenation of several strings in label ("The value of i is" & decimal i & "." (0,0)); (remember that is & concatenation character strings and is a primitive that converts an integer to a string ). However, the downside is that the string can not contain TeX commands. If the string is, for example "$ i $", the text displayed will be precisely that, not a
      i
    • in math mode. would be interesting to combine the best of both approaches, ie to dynamically generate a string , and is interpreted by TeX, so that the chain process "The value of $ i $ is" & decimal i & "." obtain the text "The value of i is 3." (Assuming that the value of the variable) This is the problem independently, have raised two different authors, and the solutions they reached each are:
       
      LatexMP . This library is published in
    • MetaPost CTAN , not only solves the above problem, but also provides a method to achieve multicolor cloud patch without dvitomp
       (see 
      my article on this topic.) It also comes with excellent documentation and usage examples. The package provides a wealth of configuration options. latex.mp . This MetaPost library is not published "officially" anywhere (except for this blog), but can be downloaded as part of the library MAKECIRC . Code is much simpler and compact than LatexMP, and the documentation is much less (included as comments in the code of the library). However, except for colored labels, it offers the same functionality as LatexMP. Latex.mp I think it may be more appropriate to be used as part of other libraries. For example, has been used in the library Schema for drawing electronic circuits, and library MAKECIRC
    of future occurrence, to the design of electric circuits. For Instead, LatexMP may be more suitable for the end user, especially if you require multicolor cloud.
     
  • Wednesday, October 1, 2003

    Shrimp Diablo Penne Pasta



    Javier M. Mora has given me to know this interesting document: The TeX

    ruler, a collection of graduates of interest rules for the typographer. Redesigned

    Friday, September 26, 2003

    Cake For The Hairdresser

    MetaPost MetaPost, again gaining ground

    are appearing more and more pages devoted to this interesting graphics programming language, but are difficult to find, because their authors do not advertise or put the documents on CTAN. This time it's the turn of the MetaPost: A very brief tutorial Urs Oswald. So hidden that not even link from your homepage . This "tutorial" is actually a collection of figures, increasingly complex, with their source and brief explanations. Not for beginners. In addition to the tutorial in the web of Urs Oswald is also an interesting
  • document that explains the order in which different operators are evaluated metapost, which helps to understand some unexpected results. In the same vein of 'tutorial' of Urs, is a huge website with over 300 examples metapost, each side of your code (beware, the page is graphically intensive). Thanks to Gustavo for this link.
  • Why Want A Universal Remote Not Wore A Emerson Tv



    Do you have to limit the size of your paper to a fixed number of pages and spend a little? "Often printed proof of your work and it bothers wasting paper? The following techniques may help reduce some of the size of your document: \\ usepackage {times, mathptmx} change the font of your document to Times, which is much more compact than the Computer Modern TeX used for default. gives you more compact environments for itemize, enumerate \\ usepackage {geometry} allows you to specify the margins in a much more comfortable than trying to directly manipulate the relevant variables LaTeX. For example: \\ geometry {left = 1cm, right = 1cm, top = 1cm, bottom = 1cm} Play with the parameters that control the positioning of the environment "floaters" (more information in my previous Article

    ) Change the distance between the lines. Reduce by 95% percent will barely be noticeable, but you will save space. Even 90% is tolerable, since the lines do not come to "clash" with each other. You do this by putting \\ renewcommand {\\} {0.9} baselinestretch

    savetrees
      that in addition to the above tricks, comes with its own bibliographic style file Abbreviations used for the literature also leaves more compact. As if that were not enough, this package comes with a perl script that allows you to make the document fonts closer (With horizontal resizing and virtual sources), allowing you to gain a little more space.