I found this  by the creator of PythonTeX himself. However, running the below code doesn't work for me; I get an error &quot;Something's wrong--perhaps a missing \item. \end{pyblock}&quot;. I'm not convinced that the \pyc command is actually having the macro expanded. Where am I going wrong? I'm trying to use package keyval to provide a nice interface to some TeX commands which pass the values on to Python, but in order to do that I need to be able to expand the TeX macros which are the key-values so that Python may consume them. \documentclass{standalone} \usepackage{pythontex} \usepackage{lipsum}  \begin{document}     \pyc{mytext = &quot;&quot;&quot;\lipsum[4]&quot;&quot;&quot;}          \begin{pyblock}     print(mytext)     \end{pyblock} \end{document}  I've created an even simpler example below. \documentclass{standalone} \usepackage{pythontex} \def\x{2} \begin{document}     \pyc{print(\x)} \end{document}  * PythonTeX stderr - error on line 8:     File &quot;C:\Users\aosborne\AppData\Local\Temp\&lt;outputdir&gt;\py_default_default.py&quot;, line 50       print(\x)   SyntaxError: unexpected character after line continuation character
I am writing out some parameters to JSON files using pythontex, but would like to add context information in form of section numbers (for example \thesection or \thesubsubsection, perhaps also the page number or other counters).  Is there a straightforward way to pass the values of the section counters to Python?   Josef
What is the best program for image optimizing for the web? What programs besides Photoshop are good for saving and optimizing images for web? Is 'efficate' a word in English? I routinely hear the word "efficate" being used.  For example, "The most powerful way to efficate a change in the system is to participate."  I do not find entries for this word in common English dictionaries, but I do not have an unabridged dictionary.  I have checked the OED (I'm not sure if it is considered unabridged), and it has no entry for "efficate".  It does have an entry for "efficiate", which is used in the same way.  Wordnik has an  for "efficate" with over 1800 hits, thus providing some evidence for the frequency of use.  I personally like the word and find the meaning very clear and obvious when others use it.  If it's not currently an "officially documented" word, perhaps its continued use will result in it being better documented. Is there a power saving application similar to Jupiter? I'm trying to install the Jupiter power settings app but, I read it is no longer compatible with the new kernel. Is there a similar program or a way to manage the power settings on 13.04? Are normal subgroups transitive? How can I obtain an 'unbalanced' grid of ggplots? Bash script doesn't see SIGHUP? I've got the following script:  #!/bin/bash echo "We are $$" trap "echo HUP" SIGHUP cat    # wait indefinitely   When I send SIGHUP (using kill -HUP pid), nothing happens.  If I change the script slightly:  #!/bin/bash echo "We are $$" trap "kill -- -$BASHPID" EXIT    # add this trap "echo HUP" SIGHUP cat    # wait indefinitely   ...then the script does the echo HUP thing right as it exits (when I press Ctrl+C):  roger@roger-pc:~ $ ./hupper.sh  We are 6233 ^CHUP   What's going on? How should I send a signal (it doesn't necessarily have to be SIGHUP) to this script? I upgraded my Nexus 4 to Lollipop a few days ago but I don't like it. I'll leave out my reasons because they're not relevant here. I wiped my phone and installed a clean stock 4.2.2 version instead. I'm happy with this.  Not long after, Android automatically downloaded the 4.3 upgrade and notifies me with the choices "Later" and "Install". I don't want to do this upgrade.  How do I:   get rid of the notification, and  remove the downloaded update (to free up precious storage space).     I have already tried choosing "Later" but the same notification immediately reappears.    Based on Google search results, I also tried going to Settings &gt; Apps &gt; All &gt; Google Services Framework and unticked "show notifications" but it still appears. Force stop or disable also doesn't seem to help, so I've re-enabled the service including notifications. I didn't see any other apps in this list that sounded relevant - did I just not see it? Execute a Java program from our Java program I used   Runtime.getRuntime().exec("_____")   but it throws a IOException as below:  java.io.IOException: CreateProcess: c:/ error=5   at java.lang.Win32Process.create(Native Method)   at java.lang.Win32Process.&lt;init&gt;(Win32Process.java:63)   at java.lang.Runtime.execInternal(Native Method   I don't know whether I have the problem with specifying the path or something else. Can anyone please help me with the code. Segmentation fault error occurs for a simple function I have coded Moderators should not close crap, flamebait questions, let the community When a moderator comes across a question that deserves to be closed, they should not. This should be left to the community to handle.   Here's a fresh example right out of the Stack Overflow oven: "".   It's a crappy question, to be sure.  It is long, ranty, and flame-fodder.  It should have been closed, but not by a moderator.  It is not the moderators' jobs to decide on their own what is and is not proper content for a site.  That is the job of the community. A virtual file containing the concatenation of other files Is there a way of creating a filesystem object akin to this:  mknod files p cat file1 file2 ... fileN &gt; files   but such that it can be seeked in, as if it were a regular file? How do I add myself into the sudoers group? Possible Duplicate:          I've added myself back into the admin's group I think, by following   But I still can't do commands like:  sudo aptitude update   I get the message  oshirowanen is not in the sudoers file.  This incident will be reported.   How do I add myself into the sudoers group now that I am in the admin group? How to fix error W: Target Packages (main/binary-amd64/Packages) is configured multiple times in my sources.list file? How to know where shell variables and functions are set? When I type the set command in my system I've got this extract out :  __colormgr_commandlist='     create-device     create-profile     delete-device     delete-profile     device-add-profile     device-get-default-profile     device-get-profile-for-qualifier     device-inhibit     device-make-profile-default     device-set-kind     device-set-model     device-set-serial     device-set-vendor     find-device     find-device-by-property     find-profile     find-profile-by-filename     get-devices     get-devices-by-kind     get-profiles     get-sensor-reading     get-sensors     get-standard-space     profile-set-filename     profile-set-qualifier     sensor-lock     sensor-set-options     ' __grub_script_check_program=grub-script-check _backup_glob='@(#*#|*@(~|.@(bak|orig|rej|swp|dpkg*|rpm@(orig|new|save))))' _xspecs=([freeamp]="!*.@(mp3|ogg|pls|m3u)" [cdiff]="!*.@(dif?(f)|?(d)patch)?(.@([gx]z|bz2|lzma))" [bibtex]="!*.aux" [rgview]="*.@(o|so|so.!(conf|*/*)|a|[rs]pm|gif|jp?(e)g|mp3|mp?(e)g|avi|asf|ogg|class)" [oowriter]="!*.@(sxw|stw|sxg|sgl|doc?([mx])|dot?([mx])|rtf|txt|htm|html|?(f)odt|ott|odm)" [chromium-browser]="!*.@(?([xX]|[sS])[hH][tT][mM]?([lL]))" [tex]="!*.@(?(la)tex|texi|dtx|ins|ltx|dbj)" [netscape]="!*.@(?([xX]|[sS])[hH][tT][mM]?([lL]))" .../.. _xinetd_services ()  {      local xinetddir=/etc/xinetd.d;     if [[ -d $xinetddir ]]; then         local restore_nullglob=$(shopt -p nullglob);         shopt -s nullglob;         local -a svcs=($( printf '%s\n' $xinetddir/!($_backup_glob) ));         $restore_nullglob;         COMPREPLY+=($( compgen -W '${svcs[@]#$xinetddir/}' -- "$cur" ));     fi } dequote ()  {      eval printf %s "$1" 2&gt; /dev/null } quote ()  {      local quoted=${1//\'/\'\\\'\'};     printf "'%s'" "$quoted" } quote_readline ()  {      local quoted;     _quote_readline_by_ref "$1" ret;     printf %s "$ret" }   I checked all files in my knowledge as /etc/profile, /etc/environment, and/or ~/.bashrc. I didn't find any generation  script or code calling.   Do you have any advice where is come from ? Proving complex series $1 + \cos\theta + \cos2\theta +... + \cos n\theta $ So I have this result  $1 + z + z^2 + ... + z^n = \frac{z^{n+1}-1}{z-1}$  which I proved already. Now I am supposed to use that result and De Moivre's formula to establish this identity     $1 + \cos\theta + \cos2\theta +... + \cos n\theta = \frac{1}{2} + \frac{\sin[(n+\frac{1}{2})\theta]}{2\sin(\frac{\theta}{2})}$   Can anyone help me? If $ \langle G, \star \rangle $ is an abelian group, then for all $a, b \in G$, show that $(a \star b)^{n} = a^{n} \star b^{n}$. If $ \langle G, \star \rangle $ is an abelian group, then for all $a, b \in G$, show that $(a \star b)^{n} = a^{n} \star b^{n}$.  I am stuck at the first step, unable to figure out how to start. I am just beginning on group theory, and know that an abelian group obeys commutativity, associativity, has an identity element, and each element is invertible. I am unable to figure out how to apply this for the proof. Any hints on how I should get started? OpenGL Texture Coordinates in Pixel Space No custom off topic message when flagging on SO I have less than 3000 rep on StackOverflow. Now that the new closing changes are live, I cannot supply a custom off topic message:    I can enter a custom off topic flag message without issue here on meta, though it only has three canned off topic reasons, rather than five.  I'm not sure if this is the same for users with enough rep to vote to close directly, but the lack of a custom message eliminates the ability to use the correct flag reason in some cases.  For example, I wanted to flag , which is simply off topic on SO. However, I can't use a custom message, and none of the canned ones are appropriate.    appears to be the most up to date official information on custom reasons, and indicates that they are remaining in play for now.  supports that.  If this is by design, how should I flag such questions? This is not a case worth bothering the mods over, so I don't want to use a custom diamond attention flag. How do I use an NBT editor to modify item properties? Initialization of an ArrayList in one line