Risposte nei forum create
-
AutoreRisposte
-
::
chuck bass” post=92542ho letto la documentazione: contro intuitiva e un po’ pasticciata …
e poi sulla rete ci sono altri esempi (non funzionanti) per la mia richiesta …Mi permetto di darti un paio di consigli, che forse ti aiutano indirettamente.
1) Ogni autore scrive la documentazione secondo il proprio schema logico che non necessariamente coincide con quello del lettore. Molte volte, cercare di capire lo schema aiuta a capire meglio il pacchetto.
2) Sulla rete ci sono altri esempi? Ottimo! Sicuramente li hai provati, perché non includi il codice? Chi legge il forum non può sapere quali esempi sono, dove sono e cosa vuoi farne tu. Essere chiari permette di avere risposte chiare.Ciao
Claudio
::
Complimenti agli autori!! 🙂In merito al repository pubblico, non sono d’accordo. Meglio, non sono d’accordo per la guida in questione. Gli autori hanno ben bilanciato le “possibilità offerte dal pacchetto” con “gli argomenti che servono a un neofita per disegnare delle ottime figure dopo avere letto la guida”. È un equilibrio molto delicato e credo che se arrivassero molti contributi il coordinatore del progetto farebbe molta fatica.
Quello che invece si può fare, se ci fosse disponibilità di contributi, è una guida “avanzata” a TikZ. In quel caso si potrebbero affrontare diverse tematiche che in una guida pensata per i neofiti non possono essere toccate: penso ad esempio alle “late options”, l’uso delle pgfkeys.
Ciao
Claudio
::dario.turchi” post=92492l’elenco e’ scritto banalmente
`\begin{description}
\item[OBJECTIVE]<1> …
\item[APPLICATION]<1> …
\item[TARGETS]<1> …
\end{description} `i pacchetti
\usepackage[output-decimal-marker={,}]{siunitx}
\usepackage{graphicx}
\usepackage{booktabs}
\usepackage{enumerate}
\usepackage{tikz}
\usepackage{bm}
\usetikzlibrary{spy,calc}
\usepackage{hyperref}non ci sono particolari direttive/dichiarazioni. Potrebbe essere il tema, ma quello mi e’ stato dato. Comunque e’ il seguente:
[attachment=939]CDS_CMT_white.tex[/attachment]ciao, Dario
Leggere la documentazione non fa mai male 😉 Per esempio, in questo caso si scopre che l’ambiente [tt]description[/tt] ha un argomento opzionale proprio per ovviare a questo inconveniente. Quindi:`\documentclass{beamer}
\input{CDS_CMT_white}\begin{document}
\begin{frame}
\begin{description}[APPLICATION]
\item[OBJECTIVE] bla bla
\item[APPLICATION] bla bla
\item[TARGETS] bla bla
\end{description}
\end{frame}
\end{document}`
P.S. Secondo la definizione data nella guida tematica Introduzione alla personalizzazione di Beamer, quello è un tema, però… per questione di principio non mi piacciono i temi pasticciati in cui c’è tutto e un po’ di più in un unico file. Un vero tema Beamer consiste di diversi file in cui ognuno svolge una certa funzione e deve poter essere richiamato con: `\usetheme{bla bla bla}`.Ciao
Claudio
::dario.turchi” post=92489usando l’ambiente “description” in beamer ottengo questo risultato grafico, che mi sembra molto brutto (disallineamento lettere, indentazione non sensata) … e’ normale ?
No, non è normale, ma senza vedere il codice non si può dire di più. Dipende da: come hai scritto l’elenco, se hai caricato il pacchetto enumerate e se chi ha scritto il tema (che non mi pare standard) ha fatto qualcosa di strano. Troppe possibilità 🙂
Ciao
Claudio
::marchetto” post=92479Fatto ma anche così ottengo lo stesso errore! 🙁
Beh, io allora proverei ad installare la nuova versione solo sul tuo albero locale e vedere se “magicamente” funziona. Altrimenti potresti installare nel tuo albero locale la versione 2.10 che ti funzionava; se nemmeno così si cava fuori qualcosa… beh non avrei più idee e procederei a re-installare TeXLive.
Ciao
Claudio
::marchetto” post=92474No non l’avevo installato.
Ok, fai una prova. Crea tu stesso il file [tt]pgfutil-common-lists.tex[/tt] in [tt]../tex/generic/pgf/utilities/[/tt] (al posto dei puntini metti il percorso corretto, non so quale sia sotto Windows, ma all’interno dei puntini ci deve essere [tt]texmf-dist[/tt]). Il contenuto del file è questo: `
% Copyright 2013 by Christian Feuersaenger
%
% This file may be distributed and/or modified
%
% 1. under the LaTeX Project Public License and/or
% 2. under the GNU Public License.
%
% See the file doc/generic/pgf/licenses/LICENSE for more details.%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%5
%
% This list here is a general re-implementation of the list used in
% the PGF system layer.
% It employs two collect-buffers to reduce the runtime.
%
% – It has preasymptotical runtime O(N), but is O(N^2) asymptotically.
% – It requires only 5 macros per list.
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Usage:
% \pgfapplistnewempty\macro
\def\pgfapplistnewempty#1{%
\expandafter\let\csname pgfapp@#1\endcsname=\pgfutil@empty
\expandafter\let\csname pgfapp@#1@smallbuf\endcsname=\pgfutil@empty
\expandafter\let\csname pgfapp@#1@bigbuf\endcsname=\pgfutil@empty
\expandafter\def\csname pgfapp@#1@smallbuf@c\endcsname{0}%
\expandafter\def\csname pgfapp@#1@bigbuf@c\endcsname{0}%
}%% #1: the item to append
% #2: the list as macro name
\long\def\pgfapplistpushback#1\to#2{%
\begingroup
\c@pgf@counta=\csname pgfapp@#2@smallbuf@c\endcsname\relax
\advance\c@pgf@counta by1
\xdef\pgf@glob@TMPa{\the\c@pgf@counta}%
\endgroup
\expandafter\let\csname pgfapp@#2@smallbuf@c\endcsname=\pgf@glob@TMPa
\ifnum\csname pgfapp@#2@smallbuf@c\endcsname<40
\t@pgf@toka=\expandafter\expandafter\expandafter{\csname pgfapp@#2@smallbuf\endcsname#1}%
\expandafter\edef\csname pgfapp@#2@smallbuf\endcsname{\the\t@pgf@toka}%
\else
\pgfapplistpushback@smallbufoverfl{#1}{#2}%
\fi
}%
\long\def\pgfapplistpushback@smallbufoverfl#1#2{%
\begingroup
\c@pgf@counta=\csname pgfapp@#2@bigbuf@c\endcsname\relax
\advance\c@pgf@counta by1
\xdef\pgf@glob@TMPa{\the\c@pgf@counta}%
\endgroup
\expandafter\let\csname pgfapp@#2@bigbuf@c\endcsname=\pgf@glob@TMPa
%
\ifnum\csname pgfapp@#2@bigbuf@c\endcsname<30
\t@pgf@toka=\expandafter\expandafter\expandafter{\csname pgfapp@#2@bigbuf\endcsname}%
\t@pgf@tokb=\expandafter\expandafter\expandafter{\csname pgfapp@#2@smallbuf\endcsname#1}%
\expandafter\edef\csname pgfapp@#2@bigbuf\endcsname{\the\t@pgf@toka\the\t@pgf@tokb}%
\expandafter\let\csname pgfapp@#2@smallbuf\endcsname=\pgfutil@empty
\expandafter\def\csname pgfapp@#2@smallbuf@c\endcsname{0}%
\else%
\t@pgf@toka=\expandafter\expandafter\expandafter{\csname pgfapp@#2\endcsname}%
\t@pgf@tokb=\expandafter\expandafter\expandafter{\csname pgfapp@#2@bigbuf\endcsname}%
\t@pgf@tokc=\expandafter\expandafter\expandafter{\csname pgfapp@#2@smallbuf\endcsname#1}%
\expandafter\edef\csname pgfapp@#2\endcsname{\the\t@pgf@toka\the\t@pgf@tokb\the\t@pgf@tokc}%
\expandafter\let\csname pgfapp@#2@smallbuf\endcsname=\pgfutil@empty
\expandafter\def\csname pgfapp@#2@smallbuf@c\endcsname{0}%
\expandafter\let\csname pgfapp@#2@bigbuf\endcsname=\pgfutil@empty
\expandafter\def\csname pgfapp@#2@bigbuf@c\endcsname{0}%
\fi%
}%
\def\pgfapplist@flushbuffers#1{%
\t@pgf@toka=\expandafter\expandafter\expandafter{\csname pgfapp@#1\endcsname}%
\t@pgf@tokb=\expandafter\expandafter\expandafter{\csname pgfapp@#1@bigbuf\endcsname}%
\t@pgf@tokc=\expandafter\expandafter\expandafter{\csname pgfapp@#1@smallbuf\endcsname}%
\expandafter\edef\csname pgfapp@#1\endcsname{\the\t@pgf@toka\the\t@pgf@tokb\the\t@pgf@tokc}%
\expandafter\let\csname pgfapp@#1@smallbuf\endcsname=\pgfutil@empty
\expandafter\def\csname pgfapp@#1@smallbuf@c\endcsname{0}%
\expandafter\let\csname pgfapp@#1@bigbuf\endcsname=\pgfutil@empty
\expandafter\def\csname pgfapp@#1@bigbuf@c\endcsname{0}%
}%\def\pgfapplistlet#1=#2{%
\pgfapplist@flushbuffers{#2}%
\expandafter\let\expandafter#1\csname pgfapp@#2\endcsname
}%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% A variant of applist which has the same runtime requirements, but
% does PUSH FRONT only.
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Usage:
% \pgfprependlistnewempty{list}
\def\pgfprependlistnewempty#1{%
\expandafter\let\csname pgfpPRP@#1\endcsname=\pgfutil@empty
\expandafter\let\csname pgfpPRP@#1@smallbuf\endcsname=\pgfutil@empty
\expandafter\let\csname pgfpPRP@#1@bigbuf\endcsname=\pgfutil@empty
\expandafter\def\csname pgfpPRP@#1@smallbuf@c\endcsname{0}%
\expandafter\def\csname pgfpPRP@#1@bigbuf@c\endcsname{0}%
}%% #1: the item to append
% #2: the list as macro name
\long\def\pgfprependlistpushfront#1\to#2{%
\begingroup
\c@pgf@counta=\csname pgfpPRP@#2@smallbuf@c\endcsname\relax
\advance\c@pgf@counta by1
\xdef\pgf@glob@TMPa{\the\c@pgf@counta}%
\endgroup
\expandafter\let\csname pgfpPRP@#2@smallbuf@c\endcsname=\pgf@glob@TMPa
\ifnum\csname pgfpPRP@#2@smallbuf@c\endcsname<40
\t@pgf@toka=\expandafter\expandafter\expandafter{\csname pgfpPRP@#2@smallbuf\endcsname}%
\t@pgf@tokb={#1}%
\expandafter\edef\csname pgfpPRP@#2@smallbuf\endcsname{\the\t@pgf@tokb\the\t@pgf@toka}%
\else
\pgfprependlistpushfront@smallbufoverfl{#1}{#2}%
\fi
}%
\long\def\pgfprependlistpushfront@smallbufoverfl#1#2{%
\begingroup
\c@pgf@counta=\csname pgfpPRP@#2@bigbuf@c\endcsname\relax
\advance\c@pgf@counta by1
\xdef\pgf@glob@TMPa{\the\c@pgf@counta}%
\endgroup
\expandafter\let\csname pgfpPRP@#2@bigbuf@c\endcsname=\pgf@glob@TMPa
%
\ifnum\csname pgfpPRP@#2@bigbuf@c\endcsname<30
\t@pgf@toka=\expandafter\expandafter\expandafter{\csname pgfpPRP@#2@bigbuf\endcsname}%
\t@pgf@tokb=\expandafter\expandafter\expandafter{\csname pgfpPRP@#2@smallbuf\endcsname}%
\t@pgf@tokc={#1}%
\expandafter\edef\csname pgfpPRP@#2@bigbuf\endcsname{\the\t@pgf@tokc\the\t@pgf@tokb\the\t@pgf@toka}%
\expandafter\let\csname pgfpPRP@#2@smallbuf\endcsname=\pgfutil@empty
\expandafter\def\csname pgfpPRP@#2@smallbuf@c\endcsname{0}%
\else%
\pgfprependlist@flushbuffers{#2}%
\t@pgf@toka=\expandafter\expandafter\expandafter{\csname pgfpPRP@#2\endcsname}%
\t@pgf@tokb={#1}%
\expandafter\edef\csname pgfpPRP@#2\endcsname{\the\t@pgf@tokb\the\t@pgf@toka}%
\fi%
}%
\def\pgfprependlist@flushbuffers#1{%
\t@pgf@toka=\expandafter\expandafter\expandafter{\csname pgfpPRP@#1\endcsname}%
\t@pgf@tokb=\expandafter\expandafter\expandafter{\csname pgfpPRP@#1@bigbuf\endcsname}%
\t@pgf@tokc=\expandafter\expandafter\expandafter{\csname pgfpPRP@#1@smallbuf\endcsname}%
\expandafter\edef\csname pgfpPRP@#1\endcsname{\the\t@pgf@tokc\the\t@pgf@tokb\the\t@pgf@toka}%
\expandafter\let\csname pgfpPRP@#1@smallbuf\endcsname=\pgfutil@empty
\expandafter\def\csname pgfpPRP@#1@smallbuf@c\endcsname{0}%
\expandafter\let\csname pgfpPRP@#1@bigbuf\endcsname=\pgfutil@empty
\expandafter\def\csname pgfpPRP@#1@bigbuf@c\endcsname{0}%
}%
\def\pgfprependlistlet#1=#2{%
\pgfprependlist@flushbuffers{#2}%
\expandafter\let\expandafter#1\csname pgfpPRP@#2\endcsname
}%
`Ciao
Claudio
::marchetto” post=92472Anch’io ho TeX Live 2013. Gira su Windows 8.
Ho provato a riavviare il pc, a riavviare il TexManager o a fare tutti e due ma da stamattina mi esce l’errore con qualsiasi testo contentente il pacchetto tikzSe per caso avevi installato TikZ 3.0.0 nel tuo albero personale, credo ti convenga eliminarla e riprovare dopo.
Ciao
Claudio
::mario60″ post=92461Hi
non sono alla macchina in questione, ma potrebbe essere che i permessi di php lanciata dall’utente apache da linea di comando siano diversi da quelli di php invocato dal server web. In particolare alcune font sono state create sotto /var/www/ (quando ho compilato lo script -e quindi tex – da linea di comando) mentre il mio localhost è in /var/www/html/. Ma non mi è chiaro come sistemare la cosa.
Aggiono se trovo una soluzione, e in ascoltograzie
marioUn attimo… questo dipende da come implementi la procedura. Se dovessi farlo io, a lato client darei la possibilità solo di inviare al server il documento e metodo di compilazione. Lato server, ricevendo il documento crea un file locale e lo compila secondo il metodo che l’utente desidera. Finiti i giochi invia il documento al client. Perciò, dovresti assicurarti che sulla macchina su cui è installato il server tu abbia tutti i permessi per la compilazione (oltre alla distribuzione) se le macchine sono diverse. Se lavori, come probabile, su una macchina sola, secondo me è veramente un problema di riconoscimento dei path. Ma, senza avere più dettagli di come stai implementando la procedura e senza un esempio minimo è praticamente impossibile darti una mano.
Ciao
Claudio
::Lorloz” post=92454Ok, chiedo perdono per la capraggine informatica..ma per curiosità: perché mi suggerivi di inserire la stringa nel prompt dei comandi? cosa avrei dovuto ottenere? Grazie e ciao
LorenzoEra una prova un po’ campata in aria. Nel senso, se compili da terminale (che serve per ottenere un pdf), non hai un visualizzatore integrato. Ma successivamente, puoi aprire il tuo editor e dire “Mostra il PDF” (è un esempio, ogni editor ha i suoi pulsantini e definizione per questa funzione) e quindi puoi verificare se la sincronizzazione funziona.
Ciao
Claudio
::Lorloz” post=92451Grazie Claudio,
ho provato a inserire senza modifiche la stringa che mi hai suggerito, ma il risultato è stato che l’editor è andato in crash… ho modificato in: xelatex –synctex=1 %.tex, la composizione è terminata con successo, ma ancora niente sincronizzazione con il pdf!!
non riesco a capire come maiPerché il comando era un esempio per il terminale (prompt dei comandi), non certo per l’editor. Un esempio perché “file.tex” si supponeva essere il tuo file, se hai messo quella stringa come comando nell’editor è normale che sia andato in crash.
Sul perché non funzioni, purtroppo non ti posso aiutare. Onestamente non ho mai usato la sincronizzazione (e si sopravvive benissimo 😛 ).
Ciao
Claudio
::Liverpool” post=92447Ci sono altri problemi fastidiosi? Se un giorno qualcuno ti passa un documento complesso come l’Arte e tu hai la distribuzione base, allora sono dolori.
O usare pacchetti con determinate dipendenze, tipo LaTeX3. Cominci a installare un pacchetto, poi ne manca un altro e poi ancora… è uno dei motivi per cui preferisco di gran lunga installazioni complete.
Ciao
Claudio
-
AutoreRisposte