\begin{texgraph}[name=essai]
Axes(0,1+i),
#style{red},
Cartesienne(3*sin(x))
\end{texgraph}
% Visionner le code LaTeX
%% LyX 2.0.0 created this file. For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[french]{article}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage[a4paper]{geometry}
\geometry{verbose,tmargin=2cm,bmargin=2cm,lmargin=2cm,rmargin=2cm}
\setlength{\parskip}{\smallskipamount}
\setlength{\parindent}{0pt}
\makeatletter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.
\providecommand{\LyX}{L\kern-.1667em\lower.25em\hbox{Y}\kern-.125emX\@}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
\usepackage[export=pgf]{texgraph}
\newcommand {\style}[1]{Color:=#1, LineStyle:=solid, Width:=8}
\makeatother
\usepackage{babel}
\addto\extrasfrench{%
\providecommand{\og}{\leavevmode\flqq~}
\providecommand{\fg}{\ifdim\lastskip>\z@\unskip\fi~\frqq}
}
\begin{document}
\LyX{} va essayer de s'interfacer avec \TeX{}graph.
\begin{texgraph}[name=essai]
Axes(0,1+i),
#style{red},
Cartesienne(3*sin(x))
\end{texgraph}
Super si ça marche !
\end{document}
% Visionner le code LaTeX
%% LyX 2.0.0 created this file. For more info, see http://www.lyx.org/.
%% Do not edit unless you really know what you are doing.
\documentclass[french]{article}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage[a4paper]{geometry}
\geometry{verbose,tmargin=2cm,bmargin=2cm,lmargin=2cm,rmargin=2cm}
\setlength{\parskip}{\smallskipamount}
\setlength{\parindent}{0pt}
\makeatletter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.
\providecommand{\LyX}{L\kern-.1667em\lower.25em\hbox{Y}\kern-.125emX\@}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands.
\usepackage{pgf}
\usepackage[export=pgf]{texgraph}
\newcommand {\style}[1]{Color:=#1, LineStyle:=solid, Width:=8}
\makeatother
\usepackage{babel}
\addto\extrasfrench{%
\providecommand{\og}{\leavevmode\flqq~}
\providecommand{\fg}{\ifdim\lastskip>\z@\unskip\fi~\frqq}
}
\begin{document}
\LyX{} va essayer de s'interfacer avec \TeX{}graph.
\begin{texgraph}[name=essai]
Axes(0,1+i),
#style{red},
Cartesienne(3*sin(x))
\end{texgraph}
Super si ça marche !
\end{document}
\begin{texgraph}[name=essai]
Axes(0,1+i),
Cartesienne(3*sin(x))
\end{texgraph}
Menhir a écrit:Je n'ai pas de fichier essai.log mais un fichier essai.teg qui reprend le fragment de code TeXgraph.
Menhir a écrit:Ça s'arrange très bien:
Je suis revenu à la version 1.963.
La commande à la main de la génération du fichier essai.pgf m'a permis de voir qu'une une ligne de commentaire commençant par # dans le code Texgraph la bloquait en fait.t
\begin{texgraph}[name=essai]
Axes(0,1+i),
#style{red},
Cartesienne(3*sin(x))
\end{texgraph}
\begin{texgraph}[name=essai,commandchars]
Axes(0,1+i),
#style{red},
Cartesienne(3*sin(x))
\end{texgraph}
Revenir vers TeXgraph dans LaTeX
Utilisateurs parcourant ce forum : Aucun utilisateur inscrit et 4 invités