Subject: mailing-list for TeXmacs Users
List archive
From : Nicola Mingotti <address@hidden>- To: "David G. Wonnacott" <address@hidden>
- Cc: texmacs-users <address@hidden>
- Subject: Re: [TeXmacs] TeXmacs as a Typewriter
- Date: Thu, 8 Mar 2018 18:20:50 +0100
|
Hi David, I Absolutely *love* Emacs, I spend a large part of my days using it. But in this case I am writing some kind of memorandum for financial forumulas I am using in a project. I need to put there well written formula and maybe some drawings. In these cases TeXmacs is more appropriate then Emacs. I attach, an excerpt of the file I am writing, written in the only way I was able to find to do what I want. If you know how to do better, let me know, absolutely ! But it must be a practical way, these are working notes, they must flow on the screen as straight as thought itself;) bye Nicola On 03/08/18 15:42, David G. Wonnacott
wrote:
Hi Nicola ---
I can't speak directly to the TeXmacs question, but am
wondering if you've tried "picture mode" in emacs? I don't
usually try to get strong/boldface in emacs, though, so I'm
not sure if that part of your need would be met.
Dave W
On Thu, Mar 8, 2018 at 3:39 AM, Nicola
Mingotti <address@hidden>
wrote:
Hi, I would like to know if it possible to have texmacs to behave as an oldstyle typerwriter as much as possible. In some sense I would like to have it behaving as big "code" environment but with the possiblity to write some formulas here and there. Untill now what i did it : -] Document -> Paragraph -> Interparagraph Space -> 0 -] Set font to MonospaceXXX The problems I see till now are: 1] Some Monospace fonts don't have the "strong" 2] When i try to align things (i want to do it manually, that is why i use monospace) there is some automatic space selector that stops me. For example ---------- water falls in lines # I can't align this correctly without a "code" environment. ---------- Do you have any suggestion ? -- -------------------------- Dr. Nicola Mingotti R&D - Borghi Srl CTO - BondInsider -------------------------- -- -------------------------- Dr. Nicola Mingotti R&D - Borghi Srl CTO - BondInsider -------------------------- |
<TeXmacs|1.99.4>
<style|generic>
<\body>
\;
<doc-data|<doc-title|Fast Typewriter Notes in
TeXmacs>|<doc-author|<author-data|<author-name|Dr.Phd.Nicola
Mingotti>|<\author-affiliation>
iniziato il 18 Marzo 2018
</author-affiliation>>>>
\;
\;
............. some notes from a longer files I am writing
............ Froget the Italian\
........... The point is the style
.......... The only practicaly way i found to space things as i wish is
......................................................................by
using dots
.to have <strong|bold> I select a Monospaced char and then Helvetica\
\;
<strong|Bond Yield [BY]>. 6.49%
-] Valore intermedio
-] Non compare in interfaccia con questo nome
-] Compare in interfaccia con il nome 'Rendimento a Scadenza Lordo'.
-] Dipende da:\
-] Questo valore corrisponde a calcolare IRR per i cashflow derivanti
...dall'acquistare un bond oggi, al prezzo di oggi e tenerlo
...fino a scadenza.\
-] ATTENZIONE, non considera i cambi, opera sul prezzo proprio del bond,
ovvero
...sui valori per cui un bond vale 100 (senza unita' di misura).
\;
<strong|Cambio Corrente [CC]>. 10.2099
-] Valori di input
-] Il bond ha una valuta
...In questo caso la valuta e' SEK, la corona svedese.
...Il cambio e' sempre espresso nella forma EUR/XXX
...In questo caso il cambio e' EUR/SEK per cui si legge<math|>:\
<\equation*>
EUR/SEK=10.2099<space|1cm>\<Rightarrow\><space|1cm>1 EUR=10.2099 SEK
</equation*>
\;
\;
<strong|Internal Rate of Return [IRR]>.
-] Non compare direttamente in interfaccia.
-] Si tratta del <underline|tasso di rendimento (r)> equivalente ad una
sequenza di cash flows.
-] Tale (r) e' sempre ben definito quando i cash flows sono quelli
darivanti
...dall'acquisto di un bond che hanno sempre segno -, +, +, ... , +.\
...giacche' si ha un cash flow negativo solo al momento iniziale d'acquisto
del
...titolo, il resto sono cedole a capitale restituito a scadenza.\
-] Per calcolare IRR si procede cosi':
...per prima cosa si trovano i cash flows e le loro distanze temporali
rispetto
...al momento d'acquisto, poi si trova NPV, in fuzione della variabile
libera (r),\
...dunque NPV = NPV(r), e poi si calcola il valore
...di (r) che risolve <math|NPV<around*|(|r|)>=0>, ovverro, IRR e':
<\equation*>
IRR=<around*|{|r<rsub|0>\<in\>\<bbb-R\><space|1spc>\|<space|1spc>NPV<around*|(|r<rsub|0>|)>=0|}>
</equation*>
\;
\;
<strong|Macaulay Duration [MAD]>. 8.63 (anni)
-] Valore intermedio, non campare nell'interfaccia di BondInsider
\;
-] La sua unita' di misura naturale e' in anni.
\;
-] E' le media pesata dei tempi che mancano a ricevere i cash flows dal
bond,
...dove i pesi sono i vari cash flows in present value.\
\;
-] Dato che l'ultimo cash flow contiene il capital refunded, l'ultimo peso\
...nella media sara' preponderante rispetto a tutti gli altri quindi,\
...grosso modo, la MAD tendera' ad essere un tempo in anni prossimo al
numero di
...anni che mancano alla data di scadenza del titolo.
\;
-] Definiti <math|t<rsub|i>> e <math|C<rsub|i>> come fatto per 'Net Present
Value' e detto <math|y> lo 'Yield'\
...del bond in questione, la MAD e' definita da:
\;
<\equation*>
MAD=<frac|<big|sum><rsub|i=0><rsup|n><around*|(|t<rsub|i>/365|)>\<cdot\>C<rsub|i>\<cdot\>e<rsup|<around*|(|-1|)>\<cdot\>y\<cdot\><around*|(|t<rsub|i>/365|)>>|<big|sum><rsub|i=0><rsup|n>C<rsub|i>\<cdot\>e<rsup|<around*|(|-1|)>\<cdot\>y\<cdot\><around*|(|t<rsub|i>/365|)>>>
</equation*>
\;
-] Osservare che il primo cash flow e' annullato da <math|t<rsub|0>=0>.
-] Osservare che il risultato, 8.63 anni e' quello che ci si aspetta
poiche'\
...tale e' circa la distanza tra la data odierna 18-Mar-2018 e la data di
scadenza
...del bond: 12-Nov-26.\
\;
</body>
<\initial>
<\collection>
<associate|font|helvetica>
<associate|font-base-size|9>
<associate|font-family|tt>
<associate|math-font|roman>
<associate|page-medium|paper>
<associate|page-screen-margin|true>
<associate|par-mode|left>
<associate|par-par-sep|0fn>
</collection>
</initial>
- [TeXmacs] TeXmacs as a Typewriter, Nicola Mingotti, 03/08/2018
- Re: [TeXmacs] TeXmacs as a Typewriter, David G. Wonnacott, 03/08/2018
- Re: [TeXmacs] TeXmacs as a Typewriter, Nicola Mingotti, 03/08/2018
- Re: [TeXmacs] TeXmacs as a Typewriter, Nino Annighöfer, 03/13/2018
- Re: [TeXmacs] TeXmacs as a Typewriter, Nicola Mingotti, 03/13/2018
- Re: [TeXmacs] TeXmacs as a Typewriter, Nino Annighöfer, 03/13/2018
- Re: [TeXmacs] TeXmacs as a Typewriter, Nicola Mingotti, 03/08/2018
- Re: [TeXmacs] TeXmacs as a Typewriter, David G. Wonnacott, 03/08/2018
Archive powered by MHonArc 2.6.19.