Skip to content

Commit

Permalink
Fix some grammar, typos and make the code section clearer for "Creati…
Browse files Browse the repository at this point in the history
…ng a Bibliography Style for TeXmacs" (#61)

* update the tm source file

* update the generated html file
  • Loading branch information
Julius-Gu authored Dec 8, 2024
1 parent 6b0a6ea commit 82dc562
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 30 deletions.
36 changes: 21 additions & 15 deletions docs/create-bibliography-style.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ <h1 id="auto-1">Creating a Bibliography Style for TeXmacs<span style="margin-lef
</p>
<p>
It is a good idea to first choose a style that is close to what you have
in mind, and make a derivative of that one. In my case, `tm-elsart-num`
in mind, and make a derivative of that one. In my case, <tt class="verbatim">tm-elsart-num</tt>
was a good starting point, since it orders the sources in the order that
they appear in the text and cites numerically.
</p>
Expand Down Expand Up @@ -94,8 +94,8 @@ <h1 id="auto-1">Creating a Bibliography Style for TeXmacs<span style="margin-lef
(if (bib-null? u) &quot;&quot; `(concat &quot;url: &quot; ,u))))</pre>
</div>
<p>
Then add the url field to the article entry definition just below: So
look for this part in the file&hellip; &darr;
Then add the url field to the article entry definition just below: look
for this part in the file&hellip; &darr;
</p>
<div class="tmweb-code">
<pre class="verbatim scheme" xml:space="preserve">
Expand All @@ -115,7 +115,9 @@ <h1 id="auto-1">Creating a Bibliography Style for TeXmacs<span style="margin-lef
,(bib-format-note x))))))</pre>
</div>
<p>
&hellip; and add the last line below &darr;
&hellip; and add the last line below <tt class="verbatim">,(bib-format-url x)</tt>
in the last line as in the code below; the comma preceding the open
parenthesis in <tt class="verbatim">,(bib-format-url x)</tt> is important! &darr;
</p>
<div class="tmweb-code">
<pre class="verbatim scheme" xml:space="preserve">
Expand All @@ -136,34 +138,38 @@ <h1 id="auto-1">Creating a Bibliography Style for TeXmacs<span style="margin-lef
,(bib-format-url x))))))</pre>
</div>
<p>
Do this for the other entry types on which you want the urls to show up
Do this for the other entry types for which you want the urls to show up
on.
</p>
<p>

</p>
<p>
If you have TeXmacs opened, then restart it now so that it can reload
the bibliographies.
If you have TeXmacs opened on your computer, then restart it now so that
it can reload the bibliographies.
</p>
<p>
Then open the document and head down to the bibliography.
Open a document with a bibliography in it and head down to the
bibliography section.
</p>
<p>
Click on the bibliography, click on the current `style`:
Click on the bibliography. In the Toolbar there should be an entry for
<tt class="verbatim">style</tt>:
</p>
<center>
<p style="margin-top: 0.5em; margin-bottom: 0.5em">
<img class="image" src="create-bibliography-style-1.png" width="30%"></img>
</p>
</center>
<p>
And click on `Other &hellip;`. It will show a Pop-Up, where you can
enter the name of your style, prefixed with &quot;tm-&quot;. For
example, `tm-julius-link-elsart-num`. Then click on &quot;ok&quot;. Now
rebuild the current buffer (either click on the button <span class="no-breaks"><img
class="image" src="create-bibliography-style-2.png" width="22.4"></img>or</span> do `crtl`+`shift`+`R`). The sources
should now show up.
Click the current style (<tt class="verbatim">tm-plain</tt> in the above image)
And click on <tt class="verbatim">Other &hellip;</tt>. It will show a Pop-Up,
where you can enter the name of your style, prefixed with
&quot;tm-&quot;. For example, <tt class="verbatim">tm-julius-link-elsart-num</tt>.
Then click on &quot;ok&quot;. Now rebuild the current buffer (either
click on the button <span class="no-breaks"><img class="image" src="create-bibliography-style-2.png" width="22.4"></img>or</span>
do <tt class="verbatim">crtl</tt>+<tt class="verbatim">shift</tt>+<tt class="verbatim">R</tt>). The
url should now show up in the sources.
</p>
<p>
<img class="image" src="create-bibliography-style-3.png" width="100%"></img>
Expand Down
Loading

0 comments on commit 82dc562

Please sign in to comment.