Inputting files alphabetically I am creating an anthology of poems and songs, and have a main file where I am using \input to insert separates TeX files which contain the poems.  I was wondering if there was a simpler way of inserting all of the files in alphabetical order based on filename instead of a separate \input for each file?  Could anybody help?    Thank you to for pointing me in the direction of the other questions - they didn't come up when I googled my queries. I am trying to adapt the code in  but I am getting 2 errors from it. My code is as follows at the moment  \documentclass{minimal}  \makeatletter% \def \app@exe {\immediate\write18}  \def \inputAllFiles [#1]{%   \app@exe{cmd /c dir /b *.tex &gt; \jobname.tmp}   \InputIfFileExists{\jobname.tmp}{}{}   \AtEndOfDocument{\app@exe{rm -f #1/\jobname.tmp}}} \makeatother%  \begin{document}  \inputAllFiles{.}  \end{document}   The errors messages I am getting are both on the line with the \inputAllFiles command and say: Use of \inputAllFiles doesn't match its definition and Too many }'s.  I have tried fiddling around with the code, but noting I seem to do helps. Could anybody help to see where I am going wrong?
How to iterate through the name of files in a folder Assume I have many TeX files. For the sake of simplicity, also asssume they are in a single folder or directory.  I want to input all files from within my main LaTeX document. Actually I can create a list of those files using C# in advance.  To enrich my view about LaTeX or TeX, could you tell me whether or not this job can be done only by using pure TeX or LaTeX?
apt-get update, unlinking Vim: How do I search for a word which is not followed by another word? centered logo ok? I'm designing a website for a rather unknown software company. The company likes the design but cannnot get along with our desicion to center their logo on the top of their page, although all the other elements are centered. Therefore a left aligned logo wouldn't look good. I know, it seems all UX studies prove them right, but positioning the logo in the center isn't a unpopular practice anymore.   Furthermore I think the way we read a website has adapted the last 10 years. Are there any studies about this topic that could help prove my point?  Thanks What does "official Ubuntu flavour" mean? What kind of support do they receive from Canonical or/and Ubuntu community? Who decides a distro should become official flavour? What privileges do "official flavours" have over unofficial derivatives of Ubuntu like Linux Mint, Elementary OS, Deepin OS,etc.? I want to ask how to get id of element which was clicked by right clicking in open menu. I must know ID of this element to show only that history the element what was clicked fom open menu: Is Autopilot Openstack 16.04 available? Where can I ask an open discussion question? How to get the path of a running JAR file? For QGIS 2.2.0-Valmiera, how does one increase the label size of OpenStreetMap layer or any other basemap layer?  Presently the labels are way too small to read.  For example, I find that for the same zoom level of a map in www.openstreetmap.com vs the same map in QGIS2.2, the map in QGIS2.2 has labels much smaller than the one from www.openstreetmap.com.  For illustration, click here: I remember being taught that the correct order of adjectives in English was something along the lines of "Opinion-Size-Age-Color-Material-Purpose."  However, it's been a long time and I'm pretty sure I've forgotten a few categories (I think there were eight or nine). Can anyone fill them in? I got a flat/puncture on my bike tube, how can I fix it myself without going to the nearest bike shop? What kind of equipment would I need? I can't review posts anymore—was the minimum reputation changed? Is it just for me, or has the privilege to review new posts and late answers changed for everyone?  I recently started being more active in reviewing, but the rep requirement just shot up and I can not review anymore? The rep requirement has shot up to 500. Is this just for me, as a 'process", or has it been changed site wide? Can every non-simple group $G$ be written as a semidirect product? When people want to classify a group with certain (small) order, they seem to find a normal subgroup $H$ and a subgroup $K$, and then consider how many distinct $H \rtimes_\varphi K$ are there.  My question is: For any group $G$, does it always exist normal subgroup $H$, subgroup $K$ and $\phi : K \rightarrow Aut(H)$ s.t. $G\cong H \rtimes_\varphi K $?  Sorry if this question is too basic...  Thanks the comment and the answers. Then if the $G$ is not simple, can we have can $G\cong H\rtimes_\varphi K$ for proper subgroup $H$, $K$, with $H$ normal?  EDIT:  If we have a group $G$, that is not simple (then $G$ has at least one normal subgroup), are there always a non-trivial normal subgroup $H$ and a proper subgroup $K$ s.t. $G \cong H \rtimes K$. (Note that if $G$ is simple this is clearly not possible).  But the quaternion group and $Z_4$ given in answers have shown that we cannot always have it. I can read the MySQL documentation and it's pretty clear. But, how does one decide which character set to use? On what data does collation have an effect?  I'm asking for an explanation of the two and how to choose them. How do I tail a log file and keep tailing it when the latest one changes date? How to modify the page at admin/structure/types? What is the best choice for .NET inter-process communication? Should I use Named Pipes, or .NET Remoting to communicate with a running process on my machine? Take the following C# class:  c1 {  event EventHandler someEvent; }   If there are a lot of subscriptions to c1's someEvent event and I want to clear them all, what is the best way to achieve this? Also consider that subscriptions to this event could be/are lambdas/anonymous delegates.  Currently my solution is to add a ResetSubscriptions() method to c1 that sets someEvent to null. I don't know if this has any unseen consequences. How to mount a virtual hard disk? Is it possible to mount a virtual hard disk (VHD, HDD, VDI, VMDK) on Ubuntu? How can this be done? How to set JAVA_HOME to point to a JDK installation? I installed sun-java6-jdk.  I need to find its home directory. JAVA_HOME must point to a JDK installation, not JRE.