How to use the NtEd output


A frequently asked question is:
"How can I use the NtEd output in text documents?"
or
"How can I append the 2nd 3rd verse as usual text blocks?"

I see 3 ways:

  1. Export to PNG and cut out the music by means of GIMP (or other graphic software). Then import the graphic into OpenOffice: jaeger.odt

    openoffice and nted

  2. Again, export to PNG and cut out the music by means of GIMP (or other graphic software). Then use a LaTeX template like this:

    ja.tex

    \documentclass[DIV10,11pt]{article}
    \usepackage{graphicx}
    \usepackage{ngerman}
    \usepackage[utf8]{inputenc}
    \pagestyle{empty}
    \setlength{\parindent}{0pt}
    
    \begin{document}
    \begin{center}
    \textbf{\Large Jägerchor}
    \end{center}
    
    \includegraphics[width=140mm]{example7}
    
    \begin{center}
    \parbox{100mm}{\textbf{1)} Was gleicht wohl auf Erden dem Jägervergnügen?\\
    Wem sprudelt der Becher des Lebens so reich?\\
    Beim Klange der Hörner im Grünen zu liegen,\\
    
     ..................
    
    Trallalala! Trallalala! Trallalala lala!/}\\[4ex]
    
    \parbox{100mm}{\textbf{2)} Diana ist kundig, die Nacht zu erhellen;\\
    
     ..................
    
    Trallalala! Trallalala! Trallalala lala!/}
    \end{center}
    
    \end{document}
    

    Then:

            pdflatex <file>.tex

    This results in an PDF like this:

    LaTeX and nted

  3. The last version is a bit quaint and works with Firefox only and only on local host: Export to SVG and place the SVG on a HTML page and play with the width= and viewBox= parameters at the beginning to scale and cut out the image:

    jaeg.xhtml

    <?xml version="1.0" encoding="utf-8" ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
    <meta http-equiv="Content-Type" content="application/xhtml+xml; charset=UTF-8"/>
    <style type="text/css">
    .center0 {margin-left:60px;}
    .center1 {margin-left:200px;margin-bottom:20px;}
    </style>
    
    <title>Jägerchor</title>
    </head>
    <body>
    <h1>Jägerchor</h1>
    <hr/>
    
    
    <div class="center0">
    <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"  width="553pt"  viewBox="0 0 1053 591" version="1.1">
    <defs>
    <g>
    <symbol overflow="visible" id="glyph0-0">
    <path style="stroke:none;" d=""/>
    </symbol>
    <symbol overflow="visible" id="glyph0-1">
    <path style="stroke:none;" d="M 2.890625 10.96875 L 0.40625 -2.265625 C 3.59375 -2.34375 5.234375 -1.203125 6.390625 
    
         .................
    
    </g>
    <path style="fill:none;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke:rgb(0%,0%,0%);
    stroke-opacity:1;stroke-miterlimit:10;" d="M 63.75 232.816406 "/>
    </g>
    </svg>
    </div>
    
    <div class="center1">
    <b>1.)</b> Was gleicht wohl auf Erden dem Jägervergnügen?<br/>
    Wem sprudelt der Becher des Lebens so reich?<br/>
    
     ..................
    
    Trallalala! Trallalala! Trallalala lala!/<br/>
    </div>
    
    <div class="center1">
    <b>2.) </b>Diana ist kundig, die Nacht zu erhellen;<br/>
    Wie labend am Tage ihr Dunkel uns kühlt!<br/>
    Lala, trallala! Trallalala lalala lalala lalala!<br/>
    
     ...................
    
    Trallalala! Trallalala! Trallalala lala!/<br/>
    </div>
    
    </body>
    </html>
    
    

    On local host this results in:

    svg_text

    Likewise you can print this from Firefox to PostScript or PDF.

J.Anders, mailto:ja@informatik.tu-chemnitz.de">ja@informatik.tu-chemnitz.de
TU-Chemnitz