I'm trying to extend the  package so that I can pass options to \includegraphics and have them override defaults, something like this:  \documentclass[]{article} \usepackage{graphicx} \usepackage{xkeyval} \usepackage{xstring} \usepackage[hybrid]{markdown}  \renewcommand{\markdownRendererImage}[4]{   \StrCut{#1}{,}{\sclabel}{\scoptions}   \begin{figure}[ht]     \centering     \includegraphics[width=0.8\textwidth,\scoptions]{#3}     \caption{#4}     \label{\sclabel}   \end{figure} } \begin{document} \begin{markdown} ![fig:example,width=10px](example.png "Lorem ipsum...") \end{markdown} \end{document}   Unfortunately, this code results in an error:  ! Package xkeyval Error: `width=10px' undefined in families `Gin'.   I understand that \StrCut is somehow bundling up \sclabel and xkeyval doesn't know how to unpack it into key-value pairs, but I'm at a loss as to how to fix it. I've tried every combination I can think of of xstring's \detokenize, \tokenize, \expandafter etc. macros and I'm just very confused.  Here's a simpler MWE that doesn't depend on markdown and that shows some of the weird behavior I've already discovered:  \documentclass[]{article} \usepackage{graphicx} \usepackage{xkeyval} \usepackage{xstring}  \newcommand{\markdownRendererImage}[2]{   \StrCut{#1}{,}{\sclabel}{\scoptions}   \includegraphics[\scoptions]{#2} }  \begin{document}  \includegraphics[width=10px]{example1.png} % works as expected \markdownRendererImage{fig:example}{example2.png} % works as expected (\scoptions is empty) \markdownRendererImage{fig:example,width=10px}{example3.png} % fails with error, uses default settings \markdownRendererImage{fig:example,{width=10px}}{example4.png} % fails without error, uses default settings  \end{document}   I'm sure there's a simple way to do this but I can't crack it. Any help would be greatly appreciated!  Thanks,  Josh
I have a large set of pictures, and I want to apply predefined settings to each using the optional argument of the \includegraphics macro from the graphicx package.  I would like to define the settings once at the top of the file (like \def\settings{width=\textwidth, angle=90}), and then apply them to all of my images so that I can modify all of the settings from one place.  If I run the following code block, it gives me the versions of the error "Package xkeyval Error: 'width=\textwidth, angle=90' undefined in families 'Gin'", which seems to be because it's interpreting my entire group of settings as a single key input.  \documentclass{article} \usepackage{graphix} \begin{document}      \def\settingsA{width=\textwidth, angle=90}     \def\settingsB{page=1, scale=.1}     \def\settingsC{angle=90, scale=.5}      \begin{figure}         \includegraphics[\settingsA]{filename1.png}         \label{fig:oneofonehundred}     \end{figure}      \begin{figure}         \includegraphics[\settingsB]{filename2.pdf}         \label{fig:twoofonehundred}     \end{figure}      \begin{figure}         \includegraphics[\settingsC]{filename3.jpg}         \label{fig:threeofonehundred}     \end{figure}   \end{document}   What is the technique to modify this settings string so that it is interpreted correctly? How do I pass an optional argument that is interpreted as a set of arguments instead of one string?  Thanks in advance!
An excerpt from Introduction to Analytic Number Theory by Tom M. Apostol.      I have three main concerns regarding this proof:    What is the abscissa of convergence for $\frac{1}{F(s)}$ - why can we take the product of the two series. I only know this is true if the two series are absolutely convergent.  Why can we do term by term integration? I believe its suffices to show that the series converges locally uniformly - BUT is this true?  How does the proof show that $G(s)$ converges uniformly? Calculating lat/lons from PostGIS table which has projected coordinate system? I have a PostGIS table in a projected coordinate system (EPSG: 28355 or MGA94 Zone 55). In QGIS (with the PostGIS manager plugin) I calculate a coordinate by performing the following SQL:  UPDATE gisprod.buildings SET easting = x(centroid(the_geom))    Now I want to add a "lat" and "lon" field to this table and calculate the values using the appropriate coordinate system, in this case that would be (EPSG:4283 or GDA94).   Is there a way I can specify in the SQL statement to calculate the x/y coord using a different coordinate system? How do I boot into single-user mode from GRUB? This question is regarding the minecraft Beta 1.8 prerelease -- I have a beautiful house in single player survival which I'd like to record while flying.  I want to be able to change the game mode of my survival map to creative to be able to fly through it without installing a mod. I know it is possible if you run the map on a multiplayer server via the command /gamemode &lt;user&gt; 0|1 but I want to achieve this in single player :)  I think this would be possible through editing your level.dat file as I think that's where the game mode for the map is stored. Getting javax.crypto.IllegalBlockSizeException: Input length must be multiple of 16 when decrypting with padded cipher? So I wanted to make some minecoins and I also heard that anyone become a marketplace creator could but I don't know where to apply. I'm in Minecraft Pocket Edition 1.14.30. Can you tell me where I can apply? I tried to install Tor on my new version of Ubuntu, but it seems that Tor is not available in the repositories.  How else can I install and use Tor? Proof that the set of all possible curves is of cardinality $\aleph_2$? I am reading George Gamow's book  and a certain assertion Gamow makes seems a little startling considering what I already know of the subject of infinite cardinality.     But the number of all geometrical points, though larger than the number of integer and fractional numbers, is not the largest one known to mathematicians. In fact it was found the variety of all possible curves, including those of the most unusual shapes, has a larger membership than the collection of all geometric points, and thus has to be described by the third number in the infinite sequence. [Gamow, 22]   He later does explicitly say the number of all possible curves is $\aleph_2$. But nowhere else can I find reference to this being true, nor does he provide any sort of reasoning to its validity.  My question is how can you prove the set of all possible curves is of cardinality $\aleph_2$ and not $\aleph_1$ or $\aleph_0$? What is this type of flexible contact strip called? The LCD below is from a cheap digital clock which was (obviously) damaged (broken glass).    The electrical connection between the PCB and the display was realized with this pink strip.    Its flexible...    ...and consists of alternating rows of conductive and insulating material between the pink boarders.    [above image was altered in contrast/brightness to highlight the alternating strips]  What is this kind of connector called? Is it only used for displays?   I am pretty impressed that the connection is reliable just from the very slight pressure between the strip and the PCB. Also, its easily removable from the display. There seems to be some conductive layer on the glass, from where the signal goes into the displays internals. This connection seems to be damaged for the three rightmost signals, where the glass is broken. As I have seen in other posts, i.stack.imgur.com is blocked by numerous companies' firewalls including my own. I have started the process to get the restriction lifted but to increase the likelihood of it being granted, have only requested that i.stack.imgur.com be unblocked.  Staying within the context of SO, imgur and the hosting arrangement SO has with them, are there any other sub-domains/domains that I should be requesting be unblocked? i.e. p.stack.imgur.com or *.stack.imgur.com?  I'm not sure if images can still be embedded/hotlinked in posts from other image hosts or not but if they can I'm not interested in unblocking those hosts, just the addresses used by SO for imgur.  Cheers :) How do I "parent" objects? I'm looking for a way to have two separate objects be connected, so that when I move the first object the second one will move also. The term parent is used, but how do I parent a object? Add a time limit before you can vote on a post There needs to be a timer or something on upvoting/downvoting.  I posted an answer to a question and as soon as the page loaded, my answer was already down voted. There is no way someone had the time to read the answer &lt; 10 seconds after it was posted. What are the fundamental differences between the mainstream *NIX shells and what scenarios might prompt you to use one over the other?  I understand that some of it probably comes down to user preference but I've only ever used Bash and I'm interested to hear where another shell might be useful. Also, is there an impact on user-written shell scripts when running under one shell or another or is it simply a matter of changing the shell at the top of the file?  My instinct says it's not that easy. How does reflection work? How do I have a camera follow my object in Unity? I have an object that automatically moves by itself and I want the main camera to automatically follow it.(Like in games such as geometry dash and jetpack joyride)  This is the code for the automatic moving object in case it is needed:  using UnityEngine; using System.Collections; public class automove : MonoBehaviour { public static int movespeed = 5; public Vector3 userDirection = Vector3.right;    public void Update() {     transform.Translate(userDirection * movespeed * Time.deltaTime);  } }   So does anyone know any good scripts I could add to the main camera to follow this object that automatically moves? Thanks in advance! Can I mix different RAM modules in PC? I have 4 RAM slots on the motherboard P5K. At the moment I have two 1GB RAM modules and two 2GB RAM modules. Everything is working fine.   Can I buy one 4GB module and put it instead of the 1GB module?  Another question, can I mix MHz values, like that I have two 667MHz modules and two 1066MHz modules? Is this dangerous for the comp? Split a string by spaces -- preserving quoted substrings -- in Python I have a string which is like this:  this is "a test"   I'm trying to write something in Python to split it up by space while ignoring spaces within quotes. The result I'm looking for is:  ['this','is','a test']   PS. I know you are going to ask "what happens if there are quotes within the quotes, well, in my application, that will never happen. How can I record my screen on Ubuntu?   The app I'm looking for has ideally all of these features:   Can record in a format that can be played back easily on any platform and/or accepted by YouTube or another popular video site Can record just a window (instead of the whole screen), possibly selecting it with a mouse click Can start recording after a configurable delay (e.g., I launch the app and have time to do arrangements to my desktop/window before actual recording starts) I have, not one but two microSD cards that my phone (Samsung Galaxy Young, Gingerbread OS) seem to have broken. One is 1GB and the other is 2GB. The 1GB one won't be formatted.  When I put the 1GB one into the computer the computer prompts for a formatting. I don't care for the content so I tried to format it, but to no avail; the format fails and I have no idea what to do to make it work again.  I tried using the SDformatter software, but it can't format the card as it is write protected. I'm googling to solve it but so far no success.  My computer OS is win7 if that's of any relevance. Alien invasion movie, giant robot aliens with long legs capturing people So I saw this movie about 10 years ago, when I was about 5 years old. Since I was really young, my memory of it isn't really that great.   I think it may have been an alien invasion movie, but the only scene I remember is that there were these giant robot-alien things:   I think they had several long legs. They had a big glass dome on top of them They would grab civilians and drop them in their glass dome.   That's all I remember. If you could please help me out, that would be great.   Again, I was about 5 years old when I watched it, so my memory of it isn't that great, but I hope you know what I'm talking about. Thanks so much :)