Hoe kan ik een .tex-bestand openen?

Ik probeer een .tex-bestand te openen.

Ik weet niet zeker of ik op de bodem van het (eventueel) verrassend complexe proces ben. Ik kreeg te horen dat ik het kon doen met Notepad ++, die ik ging downloaden. Dit is het resultaat:

%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}

Het lijkt mij dat dit niet de juiste manier is om het document te bekijken. Kan iemand mij vertellen of ik gelijk heb, en zo ja, hoe ik het document goed kan bekijken?


Antwoord 1, autoriteit 100%

Een .tex-bestand moet een LaTeX-bronbestand zijn.

Als dit het geval is, bevat dat bestand de broncode voor een LaTeX-document. Je kunt het openen met elke teksteditor (notepad, notepad++ zou moeten werken) en je kunt de broncode bekijken. Maar als u het uiteindelijke opgemaakte document wilt bekijken, moet u een LaTeX-distributie installeren en het .tex-bestand compileren.

Natuurlijk kan elk programma elk bestand met elke extensie schrijven, dus als dit geen LaTeX-document is, weten we niet welke software je moet installeren om het te openen. Als u het bestand ergens uploadt en het in uw vraag koppelt, kunnen we het bestand misschien zien en u meer hulp bieden.


Ja, dit is de broncode van een LaTeX-document. Als je het hier hebt kunnen plakken, ben je het al aan het bekijken. Als u het gecompileerde document wilt bekijken, moet u een LaTeX-distributie installeren. U kunt proberen MiKTeXte installeren, dan kunt u dat gebruiken om het document naar een .pdf-bestand te compileren.

U kunt ook deze vraag en het antwoord bekijken voor hoe u dit moet doen: Hoe een LaTeX-document samenstellen?

Er is ook een online LaTeX-editor en u kunt uw code daarin plakken om een voorbeeld van het document te bekijken: https://www .overleaf.com/.


Antwoord 2

Ik weet niet wat de .tex-extensie in je bestand betekent. Als we zeggen dat het een bestand is met een extensie, dan heb je verschillende manieren om het te lezen.

Ik moet aannemen dat je Windows gebruikt omdat je notepad++ hebt genoemd.

  1. Gebruik kladblok++.
    Klik met de rechtermuisknop op het bestand en kies “bewerken met notepad++”

  2. Kladblok gebruiken
    Wijzig de bestandsnaamextensie in .txt en dubbelklik op het bestand.

  3. Gebruik de opdrachtprompt.
    Open de map waarin uw bestand zich bevindt.
    Houd shift ingedrukt en klik met de rechtermuisknop. (niet op het bestand, maar in de map waarin het bestand zich bevindt.)
    Kies hier “opdrachtvenster openen”
    typ vanaf de opdrachtprompt: “type bestandsnaam.tex”

Als deze niet werken, heb ik meer details nodig over hoe ze niet werken. Fouten die u mogelijk krijgt of wat u mag verwachten in het bestand, kunnen helpen.

Other episodes