Risposte nei forum create
-
AutoreRisposte
-
::
Immagino che ci sia dietro un grosso lavoro. Utile per me che non sono grecista,
ma a cui capita molto spesso di scrivere qualche parola greca e a volte, a seconda dal lavoro,
di dover scrivere passi interi. Nell’Arte era menzionata la possibilità di scrivere
direttamente in greco con pdflatex, ma appunto con modalità che adesso
sono state superate e semplificate. Tutti speriamo in un aggiornamento prossimo
dell’Arte! Pur capendo che gli autori non fanno solo quello 🙂Su tua indicazione sto rimettendo in ordine il pacchetto begingreek
Beh non è mica che pretendevo qualcosa! Però è assai utile, e secondo me
è un peccato che (poi giudicherai tu che tipo di revisioni apportarvi)
non sia disponibile in una sede ufficiale come il CTANm
::
La trattazione più ampia che ho trovato, ma ormai datata, è
Dominik Waßenhoven, Bibliographien erstellen mit biblatex (Teil 1), «Die TEXnische Komödie», 2/2008, pp. 53-75
Dominik Waßenhoven, Bibliographien erstellen mit biblatex (Teil 2) «Die TEXnische Komödie» 4/2008, pp. 31-61
che trovi in rete.@ ivan
Capisco che tu abbia i tuoi orientamenti e naturalmente non lo dico per insistere,
ma una guida è in qualche misura un documento “neutro”.
E poi se impariamo a farci i nostri stili, pensa quanto tempo risparmi
invece di postare (gentilissimamente) codici per ciascuna delle nostre più strane richieste…
::
Bene, ora funziona perfettamente.
In realtà basta ancor meno:
`\documentclass{article}
\usepackage[LGR,T1]{fontenc}
\usepackage[utf8]{inputenc}
\DeclareRobustCommand{\greektext}{%
\fontencoding{LGR}\fontfamily{udidot}\selectfont
\def\encodingdefault{LGR}}\begin{document}
physics (from ancient greek \greektext{φύσις})
\end{document}`
In ogni caso questa discussione dimostra che l’affermazione,
che si sente spesso, che per scrivere direttamente in greco
serve necessariamente Xelatex (o Lualatex) in realtà
non corrisponde al vero. Con pdflatex non è più necessaria
nemmeno la codifica [tt]LGRx[/tt] indicata nell’Arte a p. 204.m
::
Il pacchetto begingreek è utilissimo, l’ho installato e in effetti
consente grandissime comodità per scrivere direttamente in greco
anche senza usare xelatex. Non capisco come mai non sia disponibile
ufficialmente, dunque nel CTAN. Solo una cosa. Con questo codice
`\documentclass[a4paper]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[greek.polutoniko,italian]{babel}
\usepackage{gfsdidot}
\usepackage{ebgaramond}
\usepackage{microtype}
\usepackage{begingreek}
\newcommand{\GR}[1]{%
{\fontfamily{cmr}\selectfont\foreignlanguage{greek}{#1}}%
}\begin{document}
\GR{>ar'iste polite'ia}.
\begin{greek}>ar'iste polite'ia\end{greek}
ARTEMISIA
\begin{greek}[artemisia]>ar'iste polite'ia\end{greek}
DIDOT
\begin{greek}[udidot]>ar'iste polite'ia\end{greek}
BODONI
\begin{greek}[bodoni]>ar'iste polite'ia\end{greek}
PORSON
\begin{greek}[porson]>ar'iste polite'ia\end{greek}
DIRETTAMENTE IN GRECO
\GR{ἀρίστε πολιτεία}
\end{document}`
ricevo l’avviso
`Package begingreek Warning: The file lgrlmr.fd does not exist
(begingreek) Either provide such a file, or specify a valid
(begingreek) Greek font family to the \begin{greek} environment
on input line 30.`
eppure
`samiel@debian:~$ locate lgrlmr.fd
/usr/local/texlive/2014/texmf-dist/tex/latex/cbfonts-fd/lgrlmr.fd`
Che cosa c’è che non va?m
::
Che stile usi? Io sono un affezionatissimo utente
di biblatex-philosophy(-verbose) e quello stile
mette sempre la n. prima del numero di rivista
Altrimenti potresti provare (in attesa che si pronuncino
i guru delle bibliografie, leggi Ivan)
`\DeclareFieldFormat[article]{number}{num.~#1}`m
::
Un’ultima cosa da sistemare. Poiché nel testo uso EB Garamond, il Didot di per sé è più grande
(anzi di suo è scalato allo 1.04), dunque devo scalarlo un po’ visto che con pdflatex
non ho qualcosa come il MatchLowercase di Xelatex. e visto che a volte cambio font,
invece di creare un file .fd, scalo dal file stesso a seconda del font latino adottato.
Ora, se copio da t1udidot.fd e metto un codice come
`\edef\scaleudidot{s*[.85]}
\DeclareFontFamily{T1}{udidot}{}
\DeclareFontShape{T1}{udidot}{m}{n}{<-> \scaleudidot didotrg9a}{}
\DeclareFontShape{T1}{udidot}{m}{it}{<-> \scaleudidot didoti9a}{}
\DeclareFontShape{T1}{udidot}{b}{n}{<-> \scaleudidot didotb9a}{}
\DeclareFontShape{T1}{udidot}{b}{it}{<-> \scaleudidot didotbi9a}{}
\DeclareFontShape{T1}{udidot}{m}{sl}{<-> \scaleudidot didoto9a}{}
\DeclareFontShape{T1}{udidot}{b}{sl}{<-> \scaleudidot didotbo9a}{}
\DeclareFontShape{T1}{udidot}{m}{sc}{<-> \scaleudidot didotsc9a}{}
\DeclareFontShape{T1}{udidot}{m}{ui}{<-> \scaleudidot didotui9a}{}
\DeclareFontShape{T1}{udidot}{m}{sco}{<-> \scaleudidot didotsco9a}{}
\DeclareFontShape{T1}{udidot}{bx}{it}{ <-> \scaleudidot didotbi9a}{}
\DeclareFontShape{T1}{udidot}{bx}{sl}{ <-> \scaleudidot didotbo9a}{}
\DeclareFontShape{T1}{udidot}{bx}{n}{ <-> \scaleudidot didotb9a}{}`
non succede niente, ossia il carattere non viene affatto scalato. Se invece
copio da lgrudidot.fd e metto il codice che segue, il font viene scalato come desidero:
`\edef\scaleudidot{s*[.85]}
\DeclareFontFamily{LGR}{udidot}{}
\DeclareFontShape{LGR}{udidot}{m}{n}{<-> \scaleudidot gdidotrg6a}{}
\DeclareFontShape{LGR}{udidot}{m}{it}{<-> \scaleudidot golgai6a}{}
%\DeclareFontShape{LGR}{udidot}{b}{n}{<-> \scaleudidot gdidotb6a}{}
\DeclareFontShape{LGR}{udidot}{b}{it}{<-> \scaleudidot gdidotbi6a}{}
\DeclareFontShape{LGR}{udidot}{m}{sl}{<-> \scaleudidot gdidoti6a}{}
\DeclareFontShape{LGR}{udidot}{b}{sl}{<-> \scaleudidot gdidotbi6a}{}
\DeclareFontShape{LGR}{udidot}{m}{sc}{<-> \scaleudidot gdidotsc6a}{}
\DeclareFontShape{LGR}{udidot}{m}{ui}{<-> \scaleudidot golgaui6a}{}
\DeclareFontShape{LGR}{udidot}{m}{sco}{<-> \scaleudidot gdidotsco6a}{}
\DeclareFontShape{LGR}{udidot}{bx}{n}{<-> \scaleudidot gdidotb6a}{}
\DeclareFontShape{LGR}{udidot}{bx}{it}{<-> \scaleudidot gdidotbi6a}{}
\DeclareFontShape{LGR}{udidot}{bx}{sl}{<-> \scaleudidot gdidotbi6a}{}`
Se non devo mettere LGR, ma solo l’opzione [tt]greek.polutoniko[/tt] di babel,
perché il codice copiato da t1udidot.fd non funziona e quello copiato da lgrudidot.fd
invece produce la scalatura desiderata? Spero di essermi spiegato…m
::
Tutto perfetto per l’uso immediato.
Nei prossimi giorni provo begingreek.
La storia del [tt]greek.polutoniko[/tt] non la sapevo,
aggiorno i miei veachi codiciAltra cosa: nel testo che sto preparando
in origine avevo messo semplicemente
`\usepackage[T1]{fontenc}`
e non
`\usepackage[LGR,T1]{fontenc}`
ma il greco risulta perfettamente.
Qual è il comportamento corretto da tenere?grazie mille
m
::
Grazie per le correzioni e l’aggiornamento,
ma permane un problema. Anche se a me interessava specificamente il DIdot
e per quanto lo riguarda la cosa è risolta. Per avere, a titolo di semplce prova,
il solomos, devo caricare il relativo pacchetto. E anche se dopo di quello
ho caricato l’EB Garamond, anche il testo non greco risulta in greco (solomos)…
Ecco la versione ulteriormente rivista
`\documentclass[a4paper]{article}
\usepackage[LGR,T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[greek.polutoniko,english]{babel}
%\usepackage{gfscomplutum}
\usepackage{gfssolomos}
\usepackage{ebgaramond}\newcommand{\GRA}[1]{%
{\fontfamily{artemisia}\selectfont\foreignlanguage{greek}{#1}}%
}\newcommand*\baskervillefont{\fontencoding{LGR}\fontfamily{gfsbaskerville}%
\selectfont }
\DeclareTextFontCommand{\textbaskerville}{\baskervillefont}\newcommand{\GRC}[1]{%
{\fontfamily{bodoni}\selectfont\foreignlanguage{greek}{#1}}%
}\newcommand*\complutumfont{\fontencoding{LGR}\fontfamily{complutum}\selectfont}
\DeclareTextFontCommand{\textcomplutum}{\complutumfont}\newcommand{\GREEK}[1]{%
{\fontfamily{udidot}\selectfont\foreignlanguage{greek}{#1}}%
}\newcommand{\GRE}[1]{%
{\fontfamily{neohellenic}\selectfont\foreignlanguage{greek}{#1}}%
}\newcommand{\GRF}[1]{%
{\fontfamily{porson}\selectfont\foreignlanguage{greek}{#1}}%
}\newcommand{\GRG}[1]{%
{\fontfamily{solomos}\selectfont\foreignlanguage{greek}{#1}}%
}\begin{document}
That time of year you mayst in me behold
\medskipARTEMISIA
\GRA{Th| p'anta dido'ush|
ka`i >apolambano'ush| f'usei
apolambano'ush| f'usei apolambano'ush| f'usei apolambano'ush| f'usei apolambano'ush| f'usei apolambano'ush| f'usei apolambano'ush| f'usei apolambano'ush| f'usei apolambano'ush| f'usei apolambano'ush| f'usei ::
Si tratta cioè di un pacchetto “privato”? Grazie!
In ogni caso, cosa non va in questo file di prova?
`\documentclass[a4paper]{article}
\usepackage[LGR,T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[polutonikogreek,english]{babel}
%\usepackage{gfscomplutum}
\usepackage{gfssolomos}
\usepackage{ebgaramond}\newcommand{\GRA}[1]{%
{\fontfamily{artemisia}\selectfont\foreignlanguage{greek}{#1}}%
}\newcommand*\baskervillefont{\fontencoding{LGR}\fontfamily{gfsbaskerville}%
\selectfont }\DeclareTextFontCommand{\textbaskerville}{\baskervillefont}\newcommand{\GRC}[1]{%
{\fontfamily{bodoni}\selectfont\foreignlanguage{greek}{#1}}%
}\newcommand*\complutumfont{\fontencoding{LGR}\fontfamily{complutum}\selectfont}
\DeclareTextFontCommand{\textcomplutum}{\complutumfont}\newcommand{\GREEK}[1]{%
{\fontfamily{udidot}\selectfont\foreignlanguage{greek}{#1}}%
}\newcommand{\GRE}[1]{%
{\fontfamily{neohellenic}\selectfont\foreignlanguage{greek}{#1}}%
}\newcommand{\GRF}[1]{%
{\fontfamily{porson}\selectfont\foreignlanguage{greek}{#1}}%
}\newcommand{\GRG}[1]{%
{\fontfamily{solomos}\selectfont\foreignlanguage{greek}{#1}}%
}\begin{document}
That time of year you mayst in me behold
\medskipARTEMISIA
\GRA{Th| p'anta dido'ush|
ka`i >apolambano'ush| f'usei
apolambano'ush| f'usei apolambano'ush| f'usei apolambano'ush| f'usei apolambano'ush| f'usei apolambano'ush| f'usei apolambano'ush| f'usei apolambano'ush| f'usei apolambano'ush| f'usei ::
Ieri poi, ma era tarda notte, aprendo il file .fd mi sono accorto che il nome
della famiglia è in effetti udidot. Invece non riesco a trovare traccia
del pacchetto begingreek 🙁 né la eventuale relativa documentazione:
`samiel@debian:~$ texdoc begingreek
Sorry, no documentation found for begingreek.
If you are unsure about the name, try searching CTAN's TeX catalogue at
http://ctan.org/search.html#byDescription.`m
::
Il log (finché la compilazione no si blocca) è questo
`This is pdfTeX, Version 3.14159265-2.6-1.40.15 (TeX Live 2014) (preloaded format=pdflatex 2015.1.12) 18 JAN 2015 11:54
entering extended mode
restricted \write18 enabled.
%&-line parsing enabled.
**teubner-doc.tex
(./teubner-doc.tex
LaTeX2e <2014/05/01>
Babel <3.9l> and hyphenation patterns for 79 languages loaded.
(/usr/local/texlive/2014/texmf-dist/tex/latex/base/article.cls
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
(/usr/local/texlive/2014/texmf-dist/tex/latex/base/size12.clo
File: size12.clo 2014/09/29 v1.4h Standard LaTeX file (size option)
)
\c@part=\count79
\c@section=\count80
\c@subsection=\count81
\c@subsubsection=\count82
\c@paragraph=\count83
\c@subparagraph=\count84
\c@figure=\count85
\c@table=\count86
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
)
(/usr/local/texlive/2014/texmf-dist/tex/latex/base/inputenc.sty
Package: inputenc 2014/04/30 v1.2b Input encoding file
\inpenc@prehook=\toks14
\inpenc@posthook=\toks15(/usr/local/texlive/2014/texmf-dist/tex/latex/base/latin1.def
File: latin1.def 2014/04/30 v1.2b Input encoding file
))
(/usr/local/texlive/2014/texmf-dist/tex/latex/base/fontenc.sty
Package: fontenc 2005/09/27 v1.99g Standard LaTeX package(/usr/local/texlive/2014/texmf-dist/tex/latex/base/t1enc.def
File: t1enc.def 2005/09/27 v1.99g Standard LaTeX file
LaTeX Font Info: Redeclaring font encoding T1 on input line 43.
))
(/usr/local/texlive/2014/texmf-dist/tex/latex/txfonts/txfonts.sty
Package: txfonts 2008/01/22 v3.2.1
LaTeX Font Info: Redeclaring symbol font `operators' on input line 21.
LaTeX Font Info: Overwriting symbol font `operators' in version `normal'
(Font) OT1/cmr/m/n –> OT1/txr/m/n on input line 21.
LaTeX Font Info: Overwriting symbol font `operators' in version `bold'
(Font) OT1/cmr/bx/n –> OT1/txr/m/n on input line 21.
LaTeX Font Info: Overwriting symbol font `operators' in version `bold'
(Font) OT1/txr/m/n –> OT1/txr/bx/n on input line 22.
\symitalic=\mathgroup4
LaTeX Font Info: Overwriting symbol font `italic' in version `bold'
(Font) OT1/txr/m/it –> OT1/txr/bx/it on input line 26.
LaTeX Font Info: Redeclaring math alphabet \mathbf on input line 29.
LaTeX Font Info: Overwriting math alphabet `\mathbf' in version `normal'
(Font) OT1/cmr/bx/n –> OT1/txr/bx/n on input line 29.
LaTeX Font Info: Overwriting math alphabet `\mathbf' in version `bold'
(Font) OT1/cmr/bx/n –> OT1/txr/bx/n on input line 29.
LaTeX Font Info: Redeclaring math alphabet \mathit on input line 30.
LaTeX Font Info: Overwriting math alphabet `\mathit' in version `normal'
(Font) OT1/cmr/m/it –> OT1/txr/m/it on input line 30.
LaTeX Font Info: Overwriting math alphabet `\mathit' in version `bold'
(Font) OT1/cmr/bx/it –> OT1/txr/m/it on input line 30.
LaTeX Font Info: Overwriting math alphabet `\mathit' in version `bold'
(Font) OT1/txr/m/it –> OT1/txr/bx/it on input line 31.
LaTeX Font Info: Redeclaring math alphabet \mathsf on input line 40.
LaTeX Font Info: Overwriting math alphabet `\mathsf' in version `normal'
(Font) OT1/cmss/m/n –> OT1/txss/m/n on input line 40.
LaTeX Font Info: Overwriting math alphabet `\mathsf' in version `bold'
(Font) OT1/cmss/bx/n –> OT1/txss/m/n on input line 40.
LaTeX Font Info: Overwriting math alphabet `\mathsf' in version `bold'
(Font) OT1/txss/m/n –> OT1/txss/b/n on input line 41.
LaTeX Font Info: Redeclaring math alphabet \mathtt on input line 50.
LaTeX Font Info: Overwriting math alphabet `\mathtt' in version `normal'
(Font) OT1/cmtt/m/n –> OT1/txtt/m/n on input line 50.
LaTeX Font Info: Overwriting math alphabet `\mathtt' in version `bold'
(Font) OT1/cmtt/m/n –> OT1/txtt/m/n on input line 50.
LaTeX Font Info: Overwriting math alphabet `\mathtt' in version `bold'
(Font) OT1/txtt/m/n –> OT1/txtt/b/n on input line 51.
LaTeX Font Info: Redeclaring symbol font `letters' on input line 58.
LaTeX Font Info: Overwriting symbol font `letters' in version `normal'
(Font) OML/cmm/m/it –> OML/txmi/m/it on input line 58.
LaTeX Font Info: Overwriting symbol font `letters' in version `bold'
(Font) OML/cmm/b/it –> OML/txmi/m/it on input line 58.
LaTeX Font Info: Overwriting symbol font `letters' in version `bold'
(Font) OML/txmi/m/it –> OML/txmi/bx/it on input line 59.
\symlettersA=\mathgroup5
LaTeX Font Info: Overwriting symbol font `lettersA' in version `bold'
(Font) U/txmia/m/it –> U/txmia/bx/it on input line 67.
LaTeX Font Info: Redeclaring symbol font `symbols' on input line 77.
LaTeX Font Info: Overwriting symbol font `symbols' in version `normal'
(Font) OMS/cmsy/m/n –> OMS/txsy/m/n on input line 77.
LaTeX Font Info: Overwriting symbol font `symbols' in version `bold'
(Font) OMS/cmsy/b/n –> OMS/txsy/m/n on input line 77.
LaTeX Font Info: Overwriting symbol font `symbols' in version `bold'
(Font) OMS/txsy/m/n –> OMS/txsy/bx/n on input line 78.
\symAMSa=\mathgroup6
LaTeX Font Info: Overwriting symbol font `AMSa' in version `bold'
(Font) U/txsya/m/n –> U/txsya/bx/n on input line 94.
\symAMSb=\mathgroup7
LaTeX Font Info: Overwriting symbol font `AMSb' in version `bold'
(Font) U/txsyb/m/n –> U/txsyb/bx/n on input line 103.
\symsymbolsC=\mathgroup8
LaTeX Font Info: Overwriting symbol font `symbolsC' in version `bold'
(Font) U/txsyc/m/n –> U/txsyc/bx/n on input line 113.
LaTeX Font Info: Redeclaring symbol font `largesymbols' on input line 120.
LaTeX Font Info: Overwriting symbol font `largesymbols' in version `normal'
(Font) OMX/cmex/m/n –> OMX/txex/m/n on input line 120.
LaTeX Font Info: Overwriting symbol font `largesymbols' in version `bold'
(Font) OMX/cmex/m/n –> OMX/txex/m/n on input line 120.
LaTeX Font Info: Overwriting symbol font `largesymbols' in version `bold'
(Font) OMX/txex/m/n –> OMX/txex/bx/n on input line 121.
\symlargesymbolsA=\mathgroup9
LaTeX Font Info: Overwriting symbol font `largesymbolsA' in version `bold'
(Font) U/txexa/m/n –> U/txexa/bx/n on input line 129.
LaTeX Info: Redefining \not on input line 1043.
)
(/usr/local/texlive/2014/texmf-dist/tex/latex/mflogo/mflogo.sty
Package: mflogo 1999/03/10 v2.0 LaTeX package for Metafont and MetaPost logos
)
(/usr/local/texlive/2014/texmf-dist/tex/generic/babel/babel.sty
Package: babel 2014/09/25 3.9l The Babel package(/usr/local/texlive/2014/texmf-dist/tex/generic/babel-greek/greek.ldf
Language: greek 2014/10/21 v1.9c Greek support for the babel system(/usr/local/texlive/2014/texmf-dist/tex/generic/babel/babel.def
File: babel.def 2014/09/25 3.9l Babel common definitions
\babel@savecnt=\count87
\U@D=\dimen103
)
\bbl@monogreek=\count88
\bbl@polygreek=\count89
\bbl@ancientgreek=\count90(/usr/local/texlive/2014/texmf-dist/tex/latex/greek-fontenc/lgrenc.def
File: lgrenc.def 2013/12/02 v0.11.2 LGR Greek font encoding definitions(/usr/local/texlive/2014/texmf-dist/tex/latex/greek-fontenc/greek-fontenc.def
File: greek-fontenc.def 2014/12/12 v0.12 Common Greek font encoding definitions))) (/usr/local/texlive/2014/texmf-dist/tex/generic/babel-english/english.ldf
Language: english 2012/08/20 v3.3p English support from the babel system
\l@canadian = a dialect from \language\l@american
\l@australian = a dialect from \language\l@british
\l@newzealand = a dialect from \language\l@british
))
(/usr/local/texlive/2014/texmf-dist/tex/latex/teubner/teubner.sty
Package: teubner 2015/01/14 v.4.5 Extensions for Greek philology(/usr/local/texlive/2014/texmf-dist/tex/generic/iftex/iftex.sty
Package: iftex 2013/04/04 v0.2 Provides if(tex) conditional for PDFTeX, XeTeX,
and LuaTeX
)
(/usr/local/texlive/2014/texmf-dist/tex/latex/cm-super/type1ec.sty
Package: type1ec 2002/09/07 v1.1 Type`
-
AutoreRisposte