web-dev-qa-db-fra.com

Comment puis-je ouvrir un fichier .tex?

J'essaie d'ouvrir un .tex fichier.

Je ne suis pas sûr d'avoir bien compris le processus (probablement) étonnamment complexe. On m'a dit que je pouvais le faire avec Notepad ++, que j'ai ensuite téléchargé. Voici le résultat:

%sample file for Modelica 2011 Conference paper

\documentclass[11pt,a4paper,twocolumn]{article}
\usepackage{graphicx}
% uncomment according to your operating system:
% ------------------------------------------------
\usepackage[latin1]{inputenc}    %% european characters can be used (Windows, old Linux)
%\usepackage[utf8]{inputenc}     %% european characters can be used (Linux)
%\usepackage[applemac]{inputenc} %% european characters can be used (Mac OS)
% ------------------------------------------------
\usepackage[T1]{fontenc}   %% get hyphenation and accented letters right
\usepackage{mathptmx}      %% use fitting times fonts also in formulas
% do not change these lines:
\pagestyle{empty}                %% no page numbers!
\usepackage{geometry}            %% please don't change geometry settings!
\geometry{left=20mm, right=20mm, top=25mm, bottom=25mm, noheadfoot}


% begin the document
\begin{document}
\thispagestyle{empty}

\title{\textbf{Implementation of a Modelica Library\\
  for Simulation of Refrigeration Systems}}
\author{Torge Pfafferott \quad Gerhard Schmitz\\
Technical University Hamburg-Harburg, Department of Technical Thermodynamics\\
Denickestr. 17, 21075 Hamburg}
\date{} % <--- leave date empty
\maketitle\thispagestyle{empty} %% <-- you need this for the first page

\abstract{
The physical modelling and transient simulation of
refrigeration systems can be useful within the specification,
development, integration and optimisation.
Therefore, a model library for vapour compression cycles has been implemented.
The library is based on the free Modelica library ThermoFluid and contains basic correlations for
heat and mass transfer and pressure drop, partial components for control volumes and
flow resistances and advanced ready-to-use models for all relevant
components of refrigeration systems like pipes, heat exchangers,
compressor, expansion devices and accumulator.
}

\emph{Keywords: refrigeration; compression cycle; simulation; thermofluid; CO2; R134a}

\section{Introduction}

The modeling and simulation of refrigeration systems is of interest 
for several problems:

\section{Library for refrigeration systems}

The aim of the modelling is to implement a library with physical based
models of components of refrigeration systems. At the moment the
library enables investigations with two refrigerants (CO$_2$, R134a). But
the realised structure allows the extension of the library by other
refrigerants.

\subsection{ThermoFluid library}

The implemented refrigeration library is based on the free Modelica library ThermoFluid
\cite{eborn}, \cite{tum}, \cite{thermofluid}. The
ThermoFluid library, especially its base classes and partial
components, offers a good base for the modelling of refrigeration systems with
respect to the implementation of the three balance equations and the
method of discretisation. 

\section{Transient simulation of a CO$_2$-system}

In the following, results of the transient simulation of the above mentioned CO$_2$-system are presented.
The results are compared with data of a start up of the
system and following step changes in compressor speed as shown in
Figure \ref{fig5}.

\begin{figure}[h]
%uncomment next line to include a graphic file
%\centerline{\includegraphics[width=6cm, angle=-90]{fig5.eps}}
%and comment out next line
\centerline{\framebox[6cm]{\rule{0cm}{3.5cm} figure example}}
\caption{Step changes in compressor speed and run of air inlet
temperature at the evaporator in the experiment; set as boundary
condition of simulation run}
\label{fig5}
\end{figure}

\begin{thebibliography}{00}
\addcontentsline{toc}{chapter}{References}

\bibitem{eborn} Eborn J. On Model Libraries for Thermo-hydraulic
Applications. Lund, Sweden: PhD thesis, Department of Automatic
control, Lund Institute of Technology, 2001.

\bibitem{tum}Tummescheit H. Design and Implementation of Object-Oriented Model Libraries
using Modelica. Lund, Sweden: PhD thesis, Department of Automatic
control, Lund Institute of Technology, 2002.

\bibitem{thermofluid} Tummescheit H, Eborn J. Chemical Reaction
Modeling with ThermoFluid/MF and MultiFlash. In: Proceedings of the 2th
Modelica Conference 2002, Oberpfaffenhofen, Germany, Modelica
Association, 18-19 March 2002.
\end{thebibliography}


\end{document}

Il me semble que ce n'est pas la bonne façon de visualiser le document. Quelqu'un peut-il me faire savoir si j'ai raison ou non, et si oui, comment puis-je consulter correctement le document?

19
George Tomlinson

Un fichier .tex doit être un fichier source LaTeX.

Si tel est le cas, ce fichier contient le code source d'un document LaTeX. Vous pouvez l'ouvrir avec n'importe quel éditeur de texte (notepad, notepad ++ devrait fonctionner) et vous pouvez afficher le code source. Mais si vous souhaitez afficher le document final formaté, vous devez installer une distribution LaTeX et compiler le fichier .tex.

Bien entendu, tout programme peut écrire n’importe quel fichier avec n’importe quelle extension. Par conséquent, s’il ne s’agit pas d’un document LaTeX, nous ne pouvons pas savoir quel logiciel vous devez installer pour l’ouvrir. Peut-être que si vous téléchargez le fichier quelque part et que vous le liez dans votre question, nous pourrons voir le fichier et vous fournir une aide supplémentaire.


Oui, c'est le code source d'un document LaTeX. Si vous avez pu le coller ici, vous le visualisez déjà. Si vous souhaitez afficher le document compilé, vous devez installer une distribution LaTeX. Vous pouvez essayer d'installer MiKTeX alors vous pouvez l'utiliser pour compiler le document en un fichier .pdf.

Vous pouvez également consulter cette question et répondre à la question suivante: Comment compiler un document LaTeX?

En outre, il existe un éditeur en ligne LaTeX dans lequel vous pouvez coller votre code pour prévisualiser le document: https://www.overleaf.com/ .

32
Ove

Je ne sais pas ce que signifie l'extension .tex dans votre fichier. Si nous disons qu'il s'agit d'un fichier avec une extension, vous avez plusieurs méthodes pour le lire.

Je dois supposer que vous utilisez Windows car vous avez mentionné Notepad ++.

  1. Utilisez le bloc-notes ++. Faites un clic droit sur le fichier et choisissez "éditer avec notepad ++"

  2. Utiliser le bloc-notes Modifiez l'extension du nom de fichier en .txt et double-cliquez sur le fichier.

  3. Utilisez l'invite de commande. Ouvrez le dossier dans lequel se trouve votre fichier. Maintenez la touche Maj enfoncée et cliquez avec le bouton droit de la souris. (pas sur le fichier, mais dans le dossier dans lequel il se trouve.) Choisissez "ouvrir la fenêtre de commande ici" dans l'invite de commande, tapez: "type nomfichier.tex"

Si cela ne fonctionne pas, j'aurais besoin de plus de détails sur la manière dont ils ne fonctionnent pas. Les erreurs que vous pourriez avoir ou ce que vous pouvez espérer être dans le fichier peuvent aider.

1
cherry