title: pgfplots using Time Series in .txt

text: I have the following Time Series data               Date S     2010-01-11  7260     2010-01-12  7270     2010-01-13  7440     2010-01-14  7430     2010-01-15  7460     2010-01-18  7500     2010-01-19  7580     2010-01-20  7470      Where S is the name of the second column. The name of the file is VTB_S.txt. The second graph is from the VTB_F.txt file, which is identical to the VTB_S.txt. I am trying to get a graph with the values of 'S' on the vertical axes, but it does not happening. With the following code:               \documentclass{article}     \usepackage{mathpazo}     \usepackage{pgfplots}     \definecolor{skyblue1}{rgb}{0.447,0.624,0.812}     \definecolor{scarletred1}{rgb}{0.937,0.161,0.161}     \pgfplotsset{width=12cm,compat=newest}     \usepgfplotslibrary{dateplot}               \begin{document}          \begin{tikzpicture}     \begin{axis}[     date coordinates in=x,      x tick label style={/pgf/number format/1000 sep=},      xticklabel={\year},      ylabel=Price,      xlabel=Time,      enlargelimits=0.10,      legend columns=2,     ]          \addplot[smooth, no markers, color=skyblue1]       table [x=Date, y index=1] {VTB_S.txt};     \addplot[smooth, dashed, no markers, color=scarletred1]       table [x=Date, y index=1] {VTB_F.txt};           % both data files are in the following format:      % Date S      % 2010-01-11  7260      % 2010-01-12  7270      % 2010-01-13  7440      % 2010-01-14  7430      % 2010-01-15  7460     \legend{Spot, Future}     \end{axis}     \end{tikzpicture}          \end{document}      But I always get wrong values (0.1, 0,2, ... , 0.9) on y-axes. I presume that LaTeX scale all values in column 'S' to 1 and used scaled values. Could you please explain how to get the correct values on y-axes? Hope the link works [enter link description here][1]               Date S               2011-01-11  10410     2011-01-12  10930     2011-01-13  10800     2011-01-14  10910     2011-01-17  10910     2011-01-18  10920     2011-01-19  10910     2011-01-20  10780     2011-01-21  11100     2011-01-24  10920     2011-01-25  10890     2011-01-26  11070     2011-01-27  11060     2011-01-28  10900     2011-01-31  10700     2011-02-01  10620     2011-02-02  10280     2011-02-03  10230     2011-02-04  10220     2011-02-07  10120     2011-02-08  9650     2011-02-09  9690     2011-02-10  9340     2011-02-11  9460     2011-02-14  9510     2011-02-15  9530     2011-02-16  9890     2011-02-17  9750     2011-02-18  9600     2011-02-21  9560     2011-02-22  9530     2011-02-24  9490     2011-02-25  9860     2011-02-28  10120     2011-03-01  9804     2011-03-02  9744     2011-03-03  9760     2011-03-04  9655     2011-03-05  9783     2011-03-09  9767     2011-03-10  9410     2011-03-11  9428     2011-03-14  9265     2011-03-15  9140     2011-03-16  9071     2011-03-17  9247     2011-03-18  9330     2011-03-21  9455     2011-03-22  9400     2011-03-23  9519     2011-03-24  9729     2011-03-25  9815     2011-03-28  9962     2011-03-29  9796     2011-03-30  9933     2011-03-31  9870     2011-04-01  10015     2011-04-04  10030     2011-04-05  9870     2011-04-06  9945     2011-04-07  9741     2011-04-08  9852     2011-04-11  9887     2011-04-12  9618     2011-04-13  9630     2011-04-14  9540     2011-04-15  9517     2011-04-18  9205     2011-04-19  9298     2011-04-20  9391     2011-04-21  9276     2011-04-22  9499     2011-04-25  9296     2011-04-26  9330     2011-04-27  9109     2011-04-28  8940     2011-04-29  8860     2011-05-03  8590     2011-05-04  8295     2011-05-05  8480     2011-05-06  8700     2011-05-10  8565     2011-05-11  8461     2011-05-12  8271     2011-05-13  8400     2011-05-16  8260     2011-05-17  8333     2011-05-18  8402     2011-05-19  8366     2011-05-20  8275     2011-05-23  8086     2011-05-24  8351     2011-05-25  8583     2011-05-26  8503     2011-05-27  8690     2011-05-30  8599     2011-05-31  8680     2011-06-01  8600     2011-06-02  8699     2011-06-03  8445     2011-06-06  8440     2011-06-07  8537     2011-06-08  8514     2011-06-09  8722     2011-06-10  8881     2011-06-14  8820     2011-06-15  8820     2011-06-16  8835     2011-06-17  8661     2011-06-20  8434     2011-06-21  8535     2011-06-22  8414     2011-06-23  8159     2011-06-24  8224     2011-06-27  8311     2011-06-28  8240     2011-06-29  8580     2011-06-30  8596     2011-07-01  8777     2011-07-04  8684     2011-07-05  8500     2011-07-06  8280     2011-07-07  8401     2011-07-08  8265     2011-07-11  8306     2011-07-12  8275     2011-07-13  8285     2011-07-14  8324     2011-07-15  8457     2011-07-18  8333     2011-07-19  8534     2011-07-20  8560     2011-07-21  8799     2011-07-22  8624     2011-07-25  8526     2011-07-26  8500     2011-07-27  8546     2011-07-28  8514     2011-07-29  8323     2011-08-01  8456     2011-08-02  8380     2011-08-03  8090     2011-08-04  8019     2011-08-05  8011     2011-08-08  7710     2011-08-09  7665     2011-08-10  6969     2011-08-11  6910     2011-08-12  7200     2011-08-15  7347     2011-08-16  7171     2011-08-17  7262     2011-08-18  6832     2011-08-19  6800     2011-08-22  6921     2011-08-23  6882     2011-08-24  7180     2011-08-25  7128     2011-08-26  7307     2011-08-29  7600     2011-08-30  7592     2011-08-31  7501     2011-09-01  7630     2011-09-02  7408     2011-09-05  7239     2011-09-06  7409     2011-09-07  7541     2011-09-08  7548     2011-09-09  7462     2011-09-12  7310     2011-09-13  7437     2011-09-14  7630     2011-09-15  7676     2011-09-16  7630     2011-09-19  7690     2011-09-20  7795     2011-09-21  7668     2011-09-22  7138     2011-09-23  6600     2011-09-26  6653     2011-09-27  6881     2011-09-28  6698     2011-09-29  6893     2011-09-30  6697     2011-10-03  6596     2011-10-04  6111     2011-10-05  6039     2011-10-06  6389     2011-10-07  6625     2011-10-10  6795     2011-10-11  6569     2011-10-12  6659     2011-10-13  6521     2011-10-14  6703     2011-10-17  6596     2011-10-18  6595     2011-10-19  6595     2011-10-20  6507     2011-10-21  6783     2011-10-24  7135     2011-10-25  6992     2011-10-26  7097     2011-10-27  7240     2011-10-28  7415     2011-10-31  7337     2011-11-01  7064     2011-11-02  7191     2011-11-03  7336     2011-11-07  7405     2011-11-08  7475     2011-11-09  7166     2011-11-10  7290     2011-11-11  7210     2011-11-14  7180     2011-11-15  7145     2011-11-16  7037     2011-11-17  6908     2011-11-18  6800     2011-11-21  6324     2011-11-22  6375     2011-11-23  6270     2011-11-24  6150     2011-11-25  6200     2011-11-28  6444     2011-11-29  6400     2011-11-30  6740     2011-12-01  6876     2011-12-02  7064     2011-12-05  7150     2011-12-06  6740     2011-12-07  6667     2011-12-08  6679     2011-12-09  6310     2011-12-12  6077     2011-12-13  6199     2011-12-14  6160     2011-12-15  6221     2011-12-16  6299     2011-12-19  6213     2011-12-20  6330     2011-12-21  6105     2011-12-22  6070     2011-12-23  5952     2011-12-26  6029     2011-12-27  5999     2011-12-28  5929     2011-12-29  5798     2011-12-30  5870     2012-01-03  6160     2012-01-04  6130     2012-01-05  6016     2012-01-06  6038     2012-01-09  6060     2012-01-10  6245     2012-01-11  6234     2012-01-12  6316     2012-01-13  6441     2012-01-16  6435     2012-01-17  6612     2012-01-18  6646     2012-01-19  6626     2012-01-20  6501     2012-01-23  6579     2012-01-24  6546     2012-01-25  6761     2012-01-26  7127     2012-01-27  7061     2012-01-30  6985     2012-01-31  7053     2012-02-01  7173     2012-02-02  7260     2012-02-03  7307     2012-02-06  7247     2012-02-07  7106     2012-02-08  7000     2012-02-09  6891     2012-02-10  6761     2012-02-13  7071     2012-02-14  7100     2012-02-15  7195     2012-02-16  7094     2012-02-17  7099     2012-02-20  7139     2012-02-21  7040     2012-02-22  6927     2012-02-24  7205     2012-02-27  7297     2012-02-28  7137     2012-02-29  7247     2012-03-01  7287     2012-03-02  7284     2012-03-05  7394     2012-03-06  7043     2012-03-07  7091     2012-03-11  7220     2012-03-12  7130     2012-03-13  7190     2012-03-14  7331     2012-03-15  7312     2012-03-16  7367     2012-03-19  7227     2012-03-20  6930     2012-03-21  6890     2012-03-22  6755     2012-03-23  6838     2012-03-26  7055     2012-03-27  6950     2012-03-28  6750     2012-03-29  6560     2012-03-30  6695     2012-04-02  6827     2012-04-03  6978     2012-04-04  6746     2012-04-05  6827     2012-04-06  6707     2012-04-09  6772     2012-04-10  6668     2012-04-11  6684     2012-04-12  6633     2012-04-13  6580     2012-04-16  6404     2012-04-17  6395     2012-04-18  6391     2012-04-19  6490     2012-04-20  6571     2012-04-23  6303     2012-04-24  6350     2012-04-25  6518     2012-04-26  6313     2012-04-27  6329     2012-04-28  6320     2012-05-02  6206     2012-05-03  6194     2012-05-04  5945     2012-05-05  5901     2012-05-07  5788     2012-05-08  5718     2012-05-10  5880     2012-05-11  5833     2012-05-12  5889     2012-05-14  5648     2012-05-15  5672     2012-05-16  5700     2012-05-17  5450     2012-05-18  5430     2012-05-21  5591     2012-05-22  5669     2012-05-23  5334     2012-05-24  5434     2012-05-25  5410     2012-05-28  5395     2012-05-29  5563     2012-05-30  5352     2012-05-31  5307     2012-06-01  5159     2012-06-04  5212     2012-06-05  5240     2012-06-06  5340     2012-06-07  5524     2012-06-08  5487     2012-06-09  5525     2012-06-13  5591     2012-06-14  5560     2012-06-15  5650     2012-06-18  5759     2012-06-19  5830     2012-06-20  5688     2012-06-21  5690     2012-06-22  5575     2012-06-25  5479     2012-06-26  5505     2012-06-27  5598     2012-06-28  5371     2012-06-29  5707     2012-07-02  5876     2012-07-03  6086     2012-07-04  6026     2012-07-05  5860     2012-07-06  5625     2012-07-09  5650     2012-07-10  5713     2012-07-11  5550     2012-07-12  5425     2012-07-13  5560     2012-07-16  5560     2012-07-17  5536     2012-07-18  5519     2012-07-19  5512     2012-07-20  5395     2012-07-23  5140     2012-07-24  5121     2012-07-25  5107     2012-07-26  5185     2012-07-27  5240     2012-07-30  5361     2012-07-31  5303     2012-08-01  5375     2012-08-02  5350     2012-08-03  5490     2012-08-06  5709     2012-08-07  5810     2012-08-08  5740     2012-08-09  5744     2012-08-10  5661     2012-08-13  5701     2012-08-14  5703     2012-08-15  5623     2012-08-16  5618     2012-08-17  5586     2012-08-20  5504     2012-08-21  5621     2012-08-22  5562     2012-08-23  5572     2012-08-24  5582     2012-08-27  5564     2012-08-28  5568     2012-08-29  5437     2012-08-30  5323     2012-08-31  5340     2012-09-03  5379     2012-09-04  5325     2012-09-05  5265     2012-09-06  5450     2012-09-07  5669     2012-09-10  5673     2012-09-11  5740     2012-09-12  5711     2012-09-13  5657     2012-09-14  6010     2012-09-17  5915     2012-09-18  5770     2012-09-19  5602     2012-09-20  5562     2012-09-21  5640     2012-09-24  5589     2012-09-25  5550     2012-09-26  5342     2012-09-27  5391     2012-09-28  5307     2012-10-01  5381     2012-10-02  5444     2012-10-03  5448     2012-10-04  5407     2012-10-05  5492     2012-10-08  5452     2012-10-09  5421     2012-10-10  5393     2012-10-11  5450     2012-10-12  5390     2012-10-15  5379     2012-10-16  5410     2012-10-17  5520     2012-10-18  5500     2012-10-19  5407     2012-10-22  5452     2012-10-23  5392     2012-10-24  5403     2012-10-25  5474     2012-10-26  5570     2012-10-29  5564     2012-10-30  5495     2012-10-31  5450     2012-11-01  5460     2012-11-02  5415     2012-11-06  5498     2012-11-07  5413     2012-11-08  5349     2012-11-09  5272     2012-11-12  5259     2012-11-13  5130     2012-11-14  5079     2012-11-15  5102     2012-11-16  5174     2012-11-19  5200     2012-11-20  5190     2012-11-21  5206     2012-11-22  5220     2012-11-23  5271     2012-11-26  5240     2012-11-27  5178     2012-11-28  5120     2012-11-29  5161     2012-11-30  5193     2012-12-03  5262     2012-12-04  5204     2012-12-05  5230     2012-12-06  5255     2012-12-07  5254     2012-12-10  5233     2012-12-11  5266     2012-12-12  5360     2012-12-13  5388     2012-12-14  5391     2012-12-17  5404     2012-12-18  5491     2012-12-19  5487     2012-12-20  5449     2012-12-21  5436     2012-12-24  5401     2012-12-25  5410     2012-12-26  5419     2012-12-27  5422     2012-12-28  5359     2013-01-08  5492     2013-01-09  5479     2013-01-10  5524     2013-01-11  5754     2013-01-14  5775     2013-01-15  5740     2013-01-16  5771     2013-01-17  5775     2013-01-18  5823     2013-01-21  5833     2013-01-22  5936     2013-01-23  5947     2013-01-24  5899     2013-01-25  5914     2013-01-28  5929     2013-01-29  5800     2013-01-30  5609     2013-01-31  5582     2013-02-01  5615     2013-02-04  5508     2013-02-05  5530     2013-02-06  5402     2013-02-07  5422     2013-02-08  5363     2013-02-11  5310     2013-02-12  5280     2013-02-13  5564     2013-02-14  5647     2013-02-15  5599     2013-02-18  5599     2013-02-19  5649     2013-02-20  5689     2013-02-21  5468     2013-02-22  5435     2013-02-25  5489     2013-02-26  5478     2013-02-27  5515     2013-02-28  5588     2013-03-01  5571     2013-03-04  5550     2013-03-05  5623     2013-03-06  5581     2013-03-07  5581     2013-03-11  5588     2013-03-12  5580     2013-03-13  5575     2013-03-14  5541     2013-03-15  5535     2013-03-18  5237     2013-03-19  5148     2013-03-20  5238     2013-03-21  5168     2013-03-22  5120     2013-03-25  5029     2013-03-26  4900     2013-03-27  4825     2013-03-28  4975     2013-03-29  4970     2013-04-01  4950     2013-04-02  4923     2013-04-03  4839     2013-04-04  4730     2013-04-05  4680     2013-04-08  4788     2013-04-09  4900     2013-04-10  4827     2013-04-11  4781     2013-04-12  4730     2013-04-15  4573     2013-04-16  4558     2013-04-17  4380     2013-04-18  4342     2013-04-19  4360     2013-04-22  4446     2013-04-23  4545     2013-04-24  4570     2013-04-25  4575     2013-04-26  4529     2013-04-29  4705     2013-04-30  4929     2013-05-02  4834     2013-05-03  4890     2013-05-06  4946     2013-05-07  5051     2013-05-08  5091     2013-05-10  4961     2013-05-13  4785     2013-05-14  4600     2013-05-15  4541     2013-05-16  4414     2013-05-17  4499     2013-05-20  4648     2013-05-21  4820     2013-05-22  4985     2013-05-23  4778     2013-05-24  4686     2013-05-27  4664     2013-05-28  4725     2013-05-29  4600     2013-05-30  4554     2013-05-31  4600     2013-06-03  4662     2013-06-04  4798     2013-06-05  4718     2013-06-06  4660      and               Date F               2011-01-11  10401     2011-01-12  10917     2011-01-13  10844     2011-01-14  10916     2011-01-17  10925     2011-01-18  10915     2011-01-19  10910     2011-01-20  10791     2011-01-21  11091     2011-01-24  10950     2011-01-25  10910     2011-01-26  11090     2011-01-27  11050     2011-01-28  10880     2011-01-31  10700     2011-02-01  10630     2011-02-02  10247     2011-02-03  10143     2011-02-04  9928     2011-02-07  9900     2011-02-08  9550     2011-02-09  9671     2011-02-10  9257     2011-02-11  9367     2011-02-14  9466     2011-02-15  9521     2011-02-16  9884     2011-02-17  9748     2011-02-18  9600     2011-02-21  9590     2011-02-22  9525     2011-02-24  9518     2011-02-25  9845     2011-02-28  10097     2011-03-01  9777     2011-03-02  9734     2011-03-03  9767     2011-03-04  9650     2011-03-05  9752     2011-03-09  9757     2011-03-10  9448     2011-03-11  9431     2011-03-14  9298     2011-03-15  9341     2011-03-16  9171     2011-03-17  9123     2011-03-18  9296     2011-03-21  9331     2011-03-22  9464     2011-03-23  9397     2011-03-24  9528     2011-03-25  9724     2011-03-28  9811     2011-03-29  9954     2011-03-30  9805     2011-03-31  9946     2011-04-01  9881     2011-04-04  10033     2011-04-05  10045     2011-04-06  9875     2011-04-07  9925     2011-04-08  9738     2011-04-11  9827     2011-04-12  9863     2011-04-13  9570     2011-04-14  9605     2011-04-15  9482     2011-04-18  9465     2011-04-19  9170     2011-04-20  9249     2011-04-21  9349     2011-04-22  9280     2011-04-25  9528     2011-04-26  9335     2011-04-27  9304     2011-04-28  9139     2011-04-29  8960     2011-05-03  8874     2011-05-04  8622     2011-05-05  8311     2011-05-06  8494     2011-05-10  8671     2011-05-11  8581     2011-05-12  8516     2011-05-13  8272     2011-05-16  8416     2011-05-17  8281     2011-05-18  8342     2011-05-19  8423     2011-05-20  8388     2011-05-23  8289     2011-05-24  8110     2011-05-25  8358     2011-05-26  8582     2011-05-27  8527     2011-05-30  8703     2011-05-31  8623     2011-06-01  8690     2011-06-02  8634     2011-06-03  8699     2011-06-06  8460     2011-06-07  8446     2011-06-08  8546     2011-06-09  8530     2011-06-10  8740     2011-06-14  8878     2011-06-15  8830     2011-06-16  8914     2011-06-17  8748     2011-06-20  8530     2011-06-21  8625     2011-06-22  8507     2011-06-23  8242     2011-06-24  8310     2011-06-27  8379     2011-06-28  8316     2011-06-29  8641     2011-06-30  8656     2011-07-01  8826     2011-07-04  8742     2011-07-05  8564     2011-07-06  8350     2011-07-07  8450     2011-07-08  8313     2011-07-11  8352     2011-07-12  8313     2011-07-13  8329     2011-07-14  8365     2011-07-15  8512     2011-07-18  8389     2011-07-19  8588     2011-07-20  8624     2011-07-21  8836     2011-07-22  8673     2011-07-25  8545     2011-07-26  8529     2011-07-27  8584     2011-07-28  8553     2011-07-29  8369     2011-08-01  8491     2011-08-02  8410     2011-08-03  8114     2011-08-04  8050     2011-08-05  8077     2011-08-08  7747     2011-08-09  7649     2011-08-10  6966     2011-08-11  6966     2011-08-12  7237     2011-08-15  7369     2011-08-16  7200     2011-08-17  7277     2011-08-18  6856     2011-08-19  6817     2011-08-22  6937     2011-08-23  6900     2011-08-24  7201     2011-08-25  7138     2011-08-26  7309     2011-08-29  7608     2011-08-30  7611     2011-08-31  7507     2011-09-01  7626     2011-09-02  7420     2011-09-05  7242     2011-09-06  7395     2011-09-07  7551     2011-09-08  7545     2011-09-09  7475     2011-09-12  7306     2011-09-13  7424     2011-09-14  7626     2011-09-15  7770     2011-09-16  7730     2011-09-19  7750     2011-09-20  7889     2011-09-21  7745     2011-09-22  7177     2011-09-23  6650     2011-09-26  6726     2011-09-27  6939     2011-09-28  6757     2011-09-29  6964     2011-09-30  6734     2011-10-03  6629     2011-10-04  6170     2011-10-05  6059     2011-10-06  6424     2011-10-07  6701     2011-10-10  6856     2011-10-11  6626     2011-10-12  6715     2011-10-13  6557     2011-10-14  6795     2011-10-17  6602     2011-10-18  6635     2011-10-19  6641     2011-10-20  6569     2011-10-21  6825     2011-10-24  7170     2011-10-25  7017     2011-10-26  7131     2011-10-27  7280     2011-10-28  7450     2011-10-31  7374     2011-11-01  7117     2011-11-02  7219     2011-11-03  7370     2011-11-07  7437     2011-11-08  7500     2011-11-09  7202     2011-11-10  7310     2011-11-11  7230     2011-11-14  7201     2011-11-15  7165     2011-11-16  7060     2011-11-17  6933     2011-11-18  6809     2011-11-21  6339     2011-11-22  6387     2011-11-23  6281     2011-11-24  6159     2011-11-25  6222     2011-11-28  6460     2011-11-29  6410     2011-11-30  6786     2011-12-01  6875     2011-12-02  7039     2011-12-05  7161     2011-12-06  6743     2011-12-07  6699     2011-12-08  6679     2011-12-09  6305     2011-12-12  6087     2011-12-13  6197     2011-12-14  6127     2011-12-15  6300     2011-12-16  6360     2011-12-19  6271     2011-12-20  6388     2011-12-21  6168     2011-12-22  6130     2011-12-23  6004     2011-12-26  6089     2011-12-27  6063     2011-12-28  5981     2011-12-29  5850     2011-12-30  5936     2012-01-03  6209     2012-01-04  6176     2012-01-05  6073     2012-01-06  6114     2012-01-09  6091     2012-01-10  6290     2012-01-11  6268     2012-01-12  6342     2012-01-13  6500     2012-01-16  6500     2012-01-17  6673     2012-01-18  6689     2012-01-19  6675     2012-01-20  6556     2012-01-23  6627     2012-01-24  6597     2012-01-25  6803     2012-01-26  7175     2012-01-27  7107     2012-01-30  7031     2012-01-31  7113     2012-02-01  7224     2012-02-02  7317     2012-02-03  7356     2012-02-06  7290     2012-02-07  7149     2012-02-08  7029     2012-02-09  6932     2012-02-10  6800     2012-02-13  7102     2012-02-14  7123     2012-02-15  7227     2012-02-16  7134     2012-02-17  7130     2012-02-20  7173     2012-02-21  7072     2012-02-22  6967     2012-02-24  7231     2012-02-27  7327     2012-02-28  7164     2012-02-29  7270     2012-03-01  7321     2012-03-02  7300     2012-03-05  7412     2012-03-06  7056     2012-03-07  7090     2012-03-11  7234     2012-03-12  7144     2012-03-13  7197     2012-03-14  7320     2012-03-15  7324     2012-03-16  7350     2012-03-19  7226     2012-03-20  6935     2012-03-21  6882     2012-03-22  6759     2012-03-23  6838     2012-03-26  7051     2012-03-27  6953     2012-03-28  6753     2012-03-29  6559     2012-03-30  6695     2012-04-02  6832     2012-04-03  6971     2012-04-04  6745     2012-04-05  6801     2012-04-06  6693     2012-04-09  6757     2012-04-10  6674     2012-04-11  6685     2012-04-12  6623     2012-04-13  6568     2012-04-16  6390     2012-04-17  6370     2012-04-18  6351     2012-04-19  6452     2012-04-20  6541     2012-04-23  6240     2012-04-24  6305     2012-04-25  6493     2012-04-26  6309     2012-04-27  6375     2012-04-28  6369     2012-05-02  6259     2012-05-03  6244     2012-05-04  5985     2012-05-05  5930     2012-05-07  5815     2012-05-08  5749     2012-05-10  5908     2012-05-11  5865     2012-05-12  5915     2012-05-14  5670     2012-05-15  5698     2012-05-16  5713     2012-05-17  5480     2012-05-18  5460     2012-05-21  5607     2012-05-22  5688     2012-05-23  5368     2012-05-24  5460     2012-05-25  5439     2012-05-28  5408     2012-05-29  5572     2012-05-30  5354     2012-05-31  5310     2012-06-01  5164     2012-06-04  5222     2012-06-05  5245     2012-06-06  5345     2012-06-07  5538     2012-06-08  5491     2012-06-09  5523     2012-06-13  5584     2012-06-14  5560     2012-06-15  5720     2012-06-18  5840     2012-06-19  5914     2012-06-20  5780     2012-06-21  5772     2012-06-22  5645     2012-06-25  5552     2012-06-26  5584     2012-06-27  5674     2012-06-28  5454     2012-06-29  5791     2012-07-02  5960     2012-07-03  6155     2012-07-04  6108     2012-07-05  5924     2012-07-06  5682     2012-07-09  5707     2012-07-10  5780     2012-07-11  5610     2012-07-12  5483     2012-07-13  5628     2012-07-16  5622     2012-07-17  5597     2012-07-18  5573     2012-07-19  5575     2012-07-20  5455     2012-07-23  5193     2012-07-24  5167     2012-07-25  5161     2012-07-26  5231     2012-07-27  5288     2012-07-30  5407     2012-07-31  5348     2012-08-01  5418     2012-08-02  5394     2012-08-03  5525     2012-08-06  5744     2012-08-07  5846     2012-08-08  5783     2012-08-09  5777     2012-08-10  5697     2012-08-13  5734     2012-08-14  5735     2012-08-15  5658     2012-08-16  5645     2012-08-17  5615     2012-08-20  5535     2012-08-21  5647     2012-08-22  5594     2012-08-23  5596     2012-08-24  5602     2012-08-27  5588     2012-08-28  5593     2012-08-29  5457     2012-08-30  5333     2012-08-31  5359     2012-09-03  5397     2012-09-04  5337     2012-09-05  5276     2012-09-06  5470     2012-09-07  5687     2012-09-10  5684     2012-09-11  5745     2012-09-12  5722     2012-09-13  5659     2012-09-14  6003     2012-09-17  6009     2012-09-18  5855     2012-09-19  5689     2012-09-20  5644     2012-09-21  5724     2012-09-24  5660     2012-09-25  5621     2012-09-26  5408     2012-09-27  5463     2012-09-28  5357     2012-10-01  5450     2012-10-02  5506     2012-10-03  5520     2012-10-04  5469     2012-10-05  5564     2012-10-08  5513     2012-10-09  5478     2012-10-10  5442     2012-10-11  5508     2012-10-12  5439     2012-10-15  5431     2012-10-16  5465     2012-10-17  5572     2012-10-18  5557     2012-10-19  5457     2012-10-22  5500     2012-10-23  5436     2012-10-24  5441     2012-10-25  5515     2012-10-26  5616     2012-10-29  5607     2012-10-30  5550     2012-10-31  5496     2012-11-01  5499     2012-11-02  5456     2012-11-06  5540     2012-11-07  5450     2012-11-08  5388     2012-11-09  5308     2012-11-12  5291     2012-11-13  5158     2012-11-14  5102     2012-11-15  5131     2012-11-16  5202     2012-11-19  5222     2012-11-20  5217     2012-11-21  5220     2012-11-22  5240     2012-11-23  5290     2012-11-26  5259     2012-11-27  5198     2012-11-28  5140     2012-11-29  5182     2012-11-30  5229     2012-12-03  5279     2012-12-04  5215     2012-12-05  5239     2012-12-06  5268     2012-12-07  5268     2012-12-10  5242     2012-12-11  5292     2012-12-12  5365     2012-12-13  5390     2012-12-14  5387     2012-12-17  5487     2012-12-18  5589     2012-12-19  5577     2012-12-20  5522     2012-12-21  5520     2012-12-24  5495     2012-12-25  5499     2012-12-26  5499     2012-12-27  5487     2012-12-28  5413     2013-01-08  5556     2013-01-09  5540     2013-01-10  5571     2013-01-11  5816     2013-01-14  5825     2013-01-15  5792     2013-01-16  5821     2013-01-17  5825     2013-01-18  5876     2013-01-21  5887     2013-01-22  5990     2013-01-23  5994     2013-01-24  5952     2013-01-25  5957     2013-01-28  5974     2013-01-29  5850     2013-01-30  5653     2013-01-31  5638     2013-02-01  5661     2013-02-04  5553     2013-02-05  5574     2013-02-06  5450     2013-02-07  5465     2013-02-08  5408     2013-02-11  5347     2013-02-12  5310     2013-02-13  5588     2013-02-14  5674     2013-02-15  5632     2013-02-18  5625     2013-02-19  5672     2013-02-20  5710     2013-02-21  5485     2013-02-22  5457     2013-02-25  5504     2013-02-26  5500     2013-02-27  5529     2013-02-28  5603     2013-03-01  5584     2013-03-04  5574     2013-03-05  5635     2013-03-06  5593     2013-03-07  5586     2013-03-11  5591     2013-03-12  5582     2013-03-13  5585     2013-03-14  5533     2013-03-15  5573     2013-03-18  5271     2013-03-19  5147     2013-03-20  5239     2013-03-21  5165     2013-03-22  5118     2013-03-25  4987     2013-03-26  4880     2013-03-27  4810     2013-03-28  4951     2013-03-29  4940     2013-04-01  4897     2013-04-02  4899     2013-04-03  4825     2013-04-04  4715     2013-04-05  4658     2013-04-08  4767     2013-04-09  4864     2013-04-10  4789     2013-04-11  4742     2013-04-12  4681     2013-04-15  4537     2013-04-16  4513     2013-04-17  4344     2013-04-18  4302     2013-04-19  4317     2013-04-22  4370     2013-04-23  4473     2013-04-24  4502     2013-04-25  4461     2013-04-26  4448     2013-04-29  4611     2013-04-30  4848     2013-05-02  4762     2013-05-03  4806     2013-05-06  4843     2013-05-07  4960     2013-05-08  4970     2013-05-10  4875     2013-05-13  4727     2013-05-14  4635     2013-05-15  4569     2013-05-16  4444     2013-05-17  4536     2013-05-20  4681     2013-05-21  4827     2013-05-22  5008     2013-05-23  4798     2013-05-24  4715     2013-05-27  4695     2013-05-28  4751     2013-05-29  4624     2013-05-30  4582     2013-05-31  4620     2013-06-03  4684     2013-06-04  4805     2013-06-05  4729     2013-06-06  4667      Finally the correct code looks like               \documentclass{article}               \usepackage{mathpazo}     \usepackage{pgfplots}     \definecolor{skyblue1}{rgb}{0.447,0.624,0.812}     \definecolor{scarletred1}{rgb}{0.937,0.161,0.161}     \pgfplotsset{width=12cm,compat=newest}     \usepgfplotslibrary{dateplot}               \begin{document}          \begin{tikzpicture}     \begin{axis}[       height=6cm, %set height      width=\textwidth, %set width      date coordinates in=x,      x tick label style={/pgf/number format/1000 sep=},      xticklabel={\year},      scaled y ticks = false,      y tick label style={/pgf/number format/fixed, /pgf/number format/1000 sep = \thinspace},      ylabel=Price per 1 LoT (RUR),      enlargelimits=0.08,  %--scale of inside lines--      legend columns=2,  %---# of colums in the legend--      date ZERO=2010-01-11  %--helps to numerate 2010-2011-2012--     ]          \addplot[smooth, no markers, color=skyblue1, mark=none, domain=2010:2015]       table [x=Date, y index=1] {VTB_S.log};     \addplot[smooth, dashed, no markers, color=scarletred1, mark=none, domain=2010:2015]       table [x=Date, y index=1] {VTB_F.log};           % both data files are in the following format:      % date commits      % 2011-07-01 3000      % 2011-08-01 3020      % 2011-09-01 3030      % [...]     \legend{Spot, Future}     \end{axis}     \end{tikzpicture}          \end{document}


title: x axis label on pgfplot

text: ![Plot](http://abload.de/img/basew0r13.jpg) Hey all! I can't get rid of the 10:2 base at the x axis. I tried changing the precision, defining the ticks manually via xticks={...}. Everything works well on the y axis, I just can't figure out why this won't work on the x axis. Any help or input would be greatly appreciated! Thanks!               \begin{tikzpicture}     \begin{axis}[%     width=\textwidth-\widthof{100},     height=8cm,     xmin=0,     xmax=0.04,     xlabel={[S]=$\frac{\text{mol}}{\text{L}}$},     xmajorgrids,     x tick label style={     /pgf/number format/.cd,     fixed,     precision=3,         /tikz/.cd     },     ymin=0,     ymax=0.23,     ylabel={[V\textsubscript{0}]=$\frac{\text{mol}}{\text{L} \cdot \text{s}}$},     ymajorgrids,     y tick label style={     /pgf/number format/.cd,     fixed,     precision=2,         /tikz/.cd     },     legend style={at={(0,1)},anchor=north west}     ]     \addplot [     color=mycolor1,     mark size=2pt,     only marks,     mark=diamond*,     mark options={solid,fill=mycolor1}     ]     table[row sep=crcr]{     0.001198562 0.0344717664736108 \\     0.002394254 0.0365895792303057 \\     0.003984064 0.0563386501133353 \\     0.011857708 0.111166458313178 \\     0.019607843 0.164120742512085 \\     0.031007752 0.220381981506325 \\     0.038461538 0.22523224268105 \\     };     %\addlegendentry{};     \end{axis}     \end{tikzpicture}


title: Mask Scaling Factor from axis

text: > **Possible Duplicate:**   >  How do you remove the axis multiplier? I'd like to mask the scaling factor from my plot: Here's an image ![enter image description here](http://i.stack.imgur.com/ef22k.png) I marked it with two red circles. How can I do this?               \begin{tikzpicture}     \tikzset{bluerect/.style={fill=blue!20, semitransparent}}     \tikzset{redrect/.style={fill=red!20, semitransparent}}          \begin{axis}[     name=plot1,     scale only axis,     width=12cm,     height=4cm,     title=unkomprimiert,     ylabel=Echostärke,     xmin=0, xmax=70000,     xticklabels={,,},     ymin=-0.6, ymax=0.8]     \addplot[smooth] table {miles.csv};     \end{axis}          \begin{axis}[     name=plot2,     at={($(plot1.south)+(0,-6cm)$)},anchor=south,     scale only axis,     width=12cm,     height=4cm,     title=komprimiert,     ylabel=Echostärke,     xmin=10000, xmax=80000,     xticklabels={,,},     ymin=-0.6, ymax=0.8]     \addplot[smooth] table {miles.csv};     \end{axis}          \draw[bluerect] (7cm, 0cm) rectangle (8.5cm, 4cm);     \draw[bluerect] (10.3cm, 0cm) rectangle (11.8cm, 4cm);     \draw[<->, >=stealth, black] (8.6cm, -1cm) -- (10.1cm, -1cm);     \draw (10.1cm, 0) -- (10.1cm, -1.1cm);          \draw[redrect] (5.3cm, -6cm) rectangle (6.8cm, -2cm);     \draw[redrect] (8.6cm, -6cm) rectangle (10.1cm, -2cm);     \draw (8.6cm, -2cm) -- (8.6cm, -0.9cm);     \end{tikzpicture}


title: PGFPlots fixed number formatting fails on small numbers

text: > **Possible Duplicate:**   >  How do you remove the axis multiplier? I have a problem getting fixed (as opposed to scientific) number formatting on my axes in PGFPlots. The following example:               \documentclass[a4paper]{article}          \usepackage{pgfplots}          \begin{document}          \pgfplotstableread{          b     b1         years           .1    .01         1           .2    .02         2       }{\estimates}          \begin{tikzpicture}         \begin{axis}[             yticklabel style={/pgf/number format/fixed},             ]                   \addplot table[x=years,y=b1]{\estimates};         \end{axis}     \end{tikzpicture}          \begin{tikzpicture}         \begin{axis}[             yticklabel style={/pgf/number format/fixed},             ]                   \addplot table[x=years,y=b]{\estimates};         \end{axis}     \end{tikzpicture}          \end{document}      Produces the following output: ![Code output](http://i.stack.imgur.com/MWwPo.png) Notice that for the first graph, I have scientific notation, even though I specified the option `yticklabel style={/pgf/number format/fixed}`, while in the second graph this works as it should. If I give an option like `yticklabel style={/pgf/number format/.cd,fixed,precision=3}` to the first graph, I get this error message:               ! Package pgfkeys Error: I do not know the key '/pgf/number format/at' and I am      going to ignore it. Perhaps you misspelled it.          See the pgfkeys package documentation for explanation.     Type  H <return>  for immediate help.      ...                                                        l.24         \end{axis}               ! Package pgfkeys Error: I do not know the key '/pgf/number format/anchor' and      I am going to ignore it. Perhaps you misspelled it.          See the pgfkeys package documentation for explanation.     Type  H <return>  for immediate help.      ...                                                        l.24         \end{axis}               ! Package pgfkeys Error: I do not know the key '/pgf/number format/inner sep' a     nd I am going to ignore it. Perhaps you misspelled it.          See the pgfkeys package documentation for explanation.     Type  H <return>  for immediate help.      ...                                                        l.24         \end{axis}      but giving the same option to the second graph works fine. After some further testing, it seems that this problem appears when the y values are below 0.1 and above 0, or below 0 and above -0.1. The same goes for the x axis. Is this a bug in PGFPlots, or am I doing something wrong? I have version 1.7, running MikTex 2.9 on Windows, all packages updated today.


title: x axis domain/range in a plot

text: Please consider the following code of a plot and its result. What I want to be shown in the plot is the actual values of the x axis i.e 1000, 5000, 10000 and not 0.1*10^4, 0.5*10^4 , 1*10^4 to be written horizontally or vertically. How can this be done? Thanks in advance.               \documentclass{article}          \usepackage{pgfplots}     \pgfplotsset{compat=newest}     \begin{document}     \begin{tikzpicture}     \begin{axis}[     domain=0:20000]     \addplot  [color=cyan,mark=*] coordinates{     (0,40.73) (257,41.13) (528,41.89) (774,41.90) (1036,42.72) (1291,42.92) (1564,43.39 (1810,43.97) (2082,44.48) (2347,45.07) (2628,45.99) (2889,46.41) (3178,47.07) (3459,47.59) (3729,47.81) (4004,48.05) (4275,48.21) (4526,48.33) (4792,48.56) (5052,48.99) (5305,48.98) (5572,49.47) (5815,49.42) (6073,49.65) (6328,49.75) (6591,50.12) (6862,50.22) (7159,50.61) (7428,50.76) (7689,50.94) (7945,50.99) (8234,50.84) (8484,51.04) (8747,51.13) (9000,51.25) (9254,51.31) (9519,51.48) (9792,51.45) (10079,51.83) (10342,52.00) (10612,52.13) (10863,52.41) (11137,52.55) (11402,52.92) (11685,53.18) (11963,53.27) (12218,53.22) (12500,53.52) (12787,53.54) (13058,53.84) (13322,53.76) (13573,53.86) (13836,53.76) (14088,53.83) (14348,53.90) (14630,54.03) (14872,54.05) (15128,54.36) (15387,54.15) (15630,54.14) (15895,54.57) (16130,54.61) (16391,54.56) (16636,54.65) (16890,54.71) (17139,54.91) (17385,55.02) (17635,55.16) (17897,55.42) (18157,55.56) (18442,55.48) (18673,55.78) (18933,55.91)     };     \end{axis}     \end{tikzpicture}     \end{document}      ![enter image description here](http://i.stack.imgur.com/0hp1u.jpg)


title: How to I fix my axis to suit the correct order of magnitude?

text: Problem: It's the times ten to the 3 bit part which bothers me. Not just that is exists but also because it's positioned itself in a strange place. My files is formatted so it is in MHz so I don't want it saying 10^-3 at all. (read the texdoc to `siunitx` and found some nice stuff but nothing obvious to help with this. I also want to be able to have some more ticks for in between values. I also want it scaled so above the y=0 line and below it have equal sizing. I would also like to put extra ticks. ![axis2][2]               \documentclass{standalone}     \usepackage{pgfplots}     \usepackage{pgfplotstable}     \usepackage{tikz}     \usepackage{siunitx}     \pgfplotsset{compat=1.5.1}          \begin{document}               \begin{tikzpicture}     \begin{axis}[    yticklabel={\pgfmathparse{(\tick)}\num[round-mode=places, round-precision=1]{\pgfmathresult}}, xlabel={Resonant Magnetic Field [mT]}, ylabel={Residuals [MHz]}]     \addplot[mark size=0.5, only marks,           error bars/.cd,             y dir=both, y explicit,           ]        table [y error index=2]        {residuals_glycerin.txt};        \addplot[mark size = 0.5, only marks,color=black]         table [x index = 0, y index= 1]         {residuals_glycerin.txt};          \draw[ultra thin,gray] (axis cs:\pgfkeysvalueof{/pgfplots/xmin},0) -- (axis cs:\pgfkeysvalueof{/pgfplots/xmax},0);           \end{axis}     \end{tikzpicture}               \end{document}      Contents of file               328.43799 -0.00106 0.00092     328.18900 -0.00038 0.00092     327.92099 0.00113 0.00092     327.70099 0.00057 0.00092     327.43600 0.00194 0.00092     327.19101 0.00246 0.00092     327.10599 -0.00389 0.00092     326.54800 0.00005 0.00092     326.82001 -0.00162 0.00092     326.54999 -0.00003 0.00092     326.30301 0.00057 0.00092     326.07700 0.00027 0.00092      Output: ![plot](http://i.stack.imgur.com/3Hn8b.png)


title: Warning when loading a LaTeX package

text: I'm new to LaTeX, and I can't work out why I'm getting a warning when adding a package I downloaded (from the MATLAB website called mcode.sty). Here is my code, `\usepackage{myFolder/mcode}`. I put `mcode.sty` in the `myFolder` folder. For some reason, I get the following error: > LaTeX Warning: You have requested package `matlabAssignment1/mcode' Am I doing something wrong, or is it the program (I'm using Texmaker).


title: Make blue box appear after pause command in beamer presentation

text: I am trying to the following in a beamer presentation.               Slide 1: This is     Slide 2: This is a test     Slide 3: This is BLUEBOXa testBLUEBOX      (BLUEBOXa testBLUEBOX should be written "a test" with a blue box around it.) Here's my MWE:               \documentclass{beamer}          \usepackage{pgfplots}          \begin{document}     \begin{frame}       This is       \pause       a test\\       \pause       {This is\tikz[baseline]{         \node[fill=blue!20,anchor=base] (t1)         {a test};}       }     \end{frame}     \end{document}      First two slides are okay, but I don't know how to make the third slide turn blue after a pause command. Does it make sense to use PGF/TikZ here? Is there an easier way?


title: Vertically aligning images in beamer

text: I have a sequence of images I would like to animate in `beamer`. In each frame, I would like to have two images, say A and B, aligned vertically and centred on the page. All images are the same size. I tried aligning the images using `\vspace{}`, but then the vertical spaces accumulate and the images slide down as I transition through them. How should I align the images in each frame? Here is a minimal working example:               \documentclass{beamer}     \begin{document}     \frame{         \begin{figure}[t!]         \includegraphics<1>[scale=.5]{fig/imageA1} \vspace{.1in}                 \includegraphics<1>[scale=.5]{fig/imageB1}              \includegraphics<2>[scale=.5]{fig/imageA2} \vspace{.1in}                 \includegraphics<2>[scale=.5]{fig/imageB2}               \includegraphics<3>[scale=.5]{fig/imageA3} \vspace{.1in}                 \includegraphics<3>[scale=.5]{fig/imageB3}              \includegraphics<4>[scale=.5]{fig/imageA4} \vspace{.1in}                 \includegraphics<4>[scale=.5]{fig/imageB4}                 \end{figure}          }        \end{document}


title: Insert web content dynamically (Javascript?)

text: This year in my field we have a large conference overlapping with the European soccer championship. Luckily my talk does not overlap with any match, but in case it will happen in the future I was wondering if it is possible to include in a `beamer` presentation some Javascript magic that fetches the live results from the internet and displays them in the bottom bar. I have researched and seen some examples of embedding JS in TeX, but everything seems to be only functions that do some simple stuff when the document is opened or when a PDF form is submitted. In particular, my questions at this point are:   1. can I run AJAX requests inside a PDF, or are the security restrictions too tight?   2. how do I embed code that gets called every X seconds, or whenever a new slide is presented?   3. which packages would make my life easier in programming this?


title: MetaPost: How to fill cycle path with slanted lines?

text: Suppose I have build a cycle path with `bulidcycle`:               path pa[];     pa.0:=(-6u,0){dir 90} .. (0,8u){dir 0};     pa.01:=pa.0 reflectedabout(origin, (0,1));          pa.1:=(-6u,0){dir -90} .. (0,-3u){dir 0};     pa.11:=pa.1 reflectedabout(origin, (0,1));          pa.2:=(3u,-6u)--(3u,12u);          pa.3:=buildcycle(pa.01,pa.11,pa.2);          draw pa.3 withcolor red;      Then it is quite easy to fill it with color,               fill pa.3 withcolor red;      My problem is how to fill it with slanted lines? Can we define a function, named as `draw_fill(expr dr, pa)`, which will fill the path `pa` with lines in the direction `dr`? * * * ## EDIT After a while, I figure out that we can do it by clip as: first to define a function called `draw_clip`,               def draw_clip(expr pat, len, gap) =     begingroup         u:=10pt;         for i=-len upto len:             draw (-len*u*dir(40)--len*u*dir(40)) shifted (0,i*u*gap);         endfor;         clip currentpicture to pat;     endgroup;     enddef;      Then before any draw, do the clip:               draw_clip(pa.3,20,.5,40);     %continu your other draws      maybe this is a not so perfect solution (as you must clip it first before anyother draw). So my question can be changed into what is the best way to do it? Another small question will be that if you want to mark the region by a label, then the label need to be changed into something like               %fix the label     picture lab;     lab=thelabel.rt(btex $\Omega$ etex, (4u, 2u));     unfill bbox lab;     draw lab


title: big document -- collaboration

text: We want to write a bigger document in collaboration. Therefore I've got some questions how to organize this best.   * so we would have one master document including (or inputting) all the parts of the "book" -- is this the right way to do it? If one is working only within one part he need's to compile everything to see the results -- is there a handy way to handle this more efficient?   * are there any other packages, latex-routines etc. which could help working on one big document?   * we would have own packages providing some own styles, environments etc.   * I thought a svn might be useful, but the only common available space we have is a simple ftp-server.. I really would appreciate some ideas and tipps before we start writing a collaborative work..


title: Problems with arabic page numbering in LaTeX

text: I am writing my thesis using `\documentclass{report}` so that I will have chapters. I have used               \renewcommand{\thepage}{\roman{page}}% Roman numerals for page counter      at the beginning in order to use roman numbering before the first chapter begins. Then I have used               \renewcommand{\thepage}{\arabic{page}}% Arabic numerals for page counter     \setcounter{page}{1}% Start page number with 1      just before the first chapter begins in order to use arabic numbering for the rest of the thesis. However, I noticed that the last few pages, which include the last page of my list of tables and my bibliography, use roman numbering. The start and end of my `.tex` file looks like this... Start:               \documentclass[a4paper,11pt]{report}          \usepackage[latin1]{inputenc}     \usepackage{amsmath}     \usepackage{amssymb}     \usepackage{graphicx,color}     \usepackage{epsfig}     \usepackage{epstopdf}     \usepackage{dcolumn}     \usepackage{bm}     \usepackage{mathrsfs}     \usepackage{dsfont}     \usepackage{setspace}     \usepackage[toc,page]{appendix}     \usepackage[     asymmetric,     lmargin=4cm,     rmargin=2cm,     tmargin=2cm,     bmargin=2cm     ]{geometry}          %user defined terms     \newcommand{\nspace}{\!\!\!\!\!\!\!}  % used to take out space between sum and integral symbols     \newcommand{\avg}[1]{\left< #1 \right>} % for average          \renewcommand{\thepage}{\roman{page}}% Roman numerals for page counter     \setcounter{page}{1}% Start page number with 1     %opening     \title{}     \date{}          \begin{document}          \maketitle      End:               \listoffigures          \clearpage     \listoftables          \end{normalsize}          \clearpage     \bibliographystyle{ieeetr}     \bibliography{Thesis}          \end{document}      I have tried changing the end to:               \listoffigures          \clearpage     \renewcommand{\thepage}{\arabic{page}}% Arabic page numbers     \listoftables          \end{normalsize}          \clearpage     \bibliographystyle{ieeetr}     \bibliography{Thesis}          \end{document}      to force the page numbering to arabic, but this doesn't work. I've also tried               \listoffigures     \clearpage     \renewcommand{\thepage}{\arabic{page}}% Arabic page numbers     \listoftables          \end{normalsize}     \clearpage     \renewcommand{\thepage}{\arabic{page}}% Arabic page numbers     \bibliographystyle{ieeetr}     \bibliography{Thesis}          \end{document}      This returns the bibliography pages to arabic numbering, but the page before, with the last part of the list of tables on it, still has a roman numeral. What can I do to make ALL pages from chapter 1 onward use arabic numbering?


title: Changing star symbol with letters in Package authblk

text: I am using package authblk in an article class. I need to change the *,a with a,* after the first Author Name. How can I do that? Please see the code below and the attached figure. I put a rectangle in red around the parts that need to be changed in the figure. I posted this question also in latex-community here. Thank you.               \documentclass[12pt]{article}     \usepackage[T1]{fontenc}     \usepackage[utf8]{inputenc}     \usepackage{authblk}     \title {\bf  Title}      \author[,a]{Author Name\thanks{Corresponding author. Tel.: +0 (000) 000 0000 ext. 00000; fax: +0 (000) 000 0000.\\\hspace*{1.8em} E-mail: email@123.com}}          \author[b]{Author Name}     \affil[a]{Department of , University of , Address, BB, CC}     \affil[b]{Department of , University of , Address, BB, CC}               \date{\today}     \begin {document}     \maketitle     \end{document}       ![enter image description here](http://i.stack.imgur.com/YWT7n.jpg)


title: Why does the vertical alignment not match the expected behaviour at p columns in tabular env?

text: I have the following code:               \documentclass{scrartcl}     \begin{document}     \begin{tabular}{lp{5cm}}     a &      \begin{itemize}      \item sd     \end{itemize}\\     \end{tabular}     \end{document}      I want to get a table with a on the left side and a list (only one entry at the moment) on the right. What I get is that the list is positioned below the a (seems to be aline below). Can you tell me what is wrong here?


title: In the verbatim environment, how can I display an 'if' statement I declared as '\ifcondition'?

text: I have declared a couple of `if` commands of the form               \newif\iffinal     \newif\ifsolutions      Now I want to write about it in the same document! So I want to write something like               \iffinal              (...)              \begin{verbatim}                  \iffinal             \ifsolutions              \end{verbatim}              (...)          \fi      that displays the syntax of the commands, but I keep getting the following error               ! Incomplete \iffalse; all text was ignored after line [NUMBER]      whenever I include my verbatim environment within the scope of a condition that is commented out like               %\iffinal      If the condition is not commented out:               \iffinal      the verbatim environment works fine. `line [NUMBER]` is the last place where I used one of my declared `if` conditions.


title: Isn't TeX similar to HTML+CSS?

text: As I said in the title, isn't TeX "similar" to _static_ web pages? Can you accomplish the same things with both, or is TeX limited to words? Why would one prefer HTML and CSS over TeX, or vice versa?


title: Beamer : change "Section 1" or remove it

text: I would like to use `\section` and `\subsection` and add them into separates slides into my beamer presentation. Doing :               \AtBeginSection{\frame{\sectionpage}}      Automatically creates the slide with current slide. How could I delete the "Section 1" above it ? Also, I could I set the language in french instead of english? Futhermore, how could I add what I want above the section title like "Partie 1"? Same for `\subsection` : the following does't work :               \begin{frame}     \selectlanguage{french}     \subsectionpage     \end{frame}


title: The punctuation signs; comma and dot, below footnote indicator is beautiful in the context of typographic styles?

text: **The norm say:** When there are punctuation marks (e.g. a comma, colon or period) at the point where the footnote indicator should be inserted, the indicator is placed after the punctuation in English but before the punctuation in French and Spanish. But, consider the following code:               \documentclass{article}          \newsavebox\superscriptbox     \newsavebox\commabox          \sbox{\superscriptbox}{\textsuperscript{12}}     \sbox{\commabox}{,}          \begin{document}              The English norm: Hello,\textsuperscript{12} bye \newline              The Spanish and French norm: Hello\textsuperscript{12}, bye \newline              The \TeX\ power: Hello,\kern-\wd\commabox\textsuperscript{12} bye. %         Hello\textsuperscript{12}\kern-\wd\superscriptbox,\kern\wd\superscriptbox bye          \end{document}      Output: ![enter image description here](http://i.stack.imgur.com/lFQq3.png) The last line of the output, is more or less beautiful than the norm? **Edit:** How can I modify the footnote command for implement the "overlapped" version (only for comma and dot), but automatically?


title: Problem with vertical space in enumerate environment

text: I have a problem regarding the vertical space between `\item` and an image. I use the following code and the image doesn't move vertical as it should. Why is that? And how can I fix it?               \documentclass[12pt]{article}          \usepackage{graphicx}          \begin{document}          \begin{enumerate}     \item          \begin{enumerate}     \item          \vspace{0.3cm}          \includegraphics[scale=0.7]{2.2.a.png}          \end{enumerate}          \end{enumerate}          \end{document}      Edit I: Also I had deleted by mistake the `\usepackage{graphicx}` and it still compiled without error! How is that possible and why?


title: How can I get \maketitle to create a separate title page with the article class?

text: I am working on a maths assignment and new to using LaTeX. I have written the assignment up but I would like the title page to be its own page. Currently my title page is a few lines generated by `\title` and `\author` but it then goes straight on to my first `\section` content. My assignments `\documentclass` is `article`. The code that generated the title and section is this:               \begin{document}     \maketitle     \section{Section header}      How can I create the title page so it is completely on its own separate page and not shared with the section?


title: How can I get a title page with the LaTeX article class?

text: > **Possible Duplicate:**   >  How can I get \maketitle to create a separate title page with the article > class? I'm trying to vertically center the title page and abstract in my LaTeX document (much like the `report` class does). I'm using the `article` class now. Essentially what I want is the `report` class without chapters, just sections and subsections etc.


title: Custom title page in report or book class?

text: I have a long academic report to write and I am thinking of using the book class or the report class? However in both these classes the title page has the title in the centre. I want to make my own title page with a few images related to the report, the logo of my instititute etc.? How to do this?


title: how to customize a title page

text: > **Possible Duplicate:**   >  Custom title page in report or book class? How do you customize the way a title page is generated (be it external package or some other redefinition of `\maketitle`)? My university is requiring a special format for my thesis title page, including specific spacing (title must be 2 inches from the top), and extra content (blurb about this being a thesis, lines for advisors to sign). The requirements document is here. I am using the `report` class.


title: How does the 'on grid' node positioning in TikZ actually work?

text: I thought I knew how the `on grid` option of TikZ (cf. version 2.10 manual section 16.5.3 pages 186-187) worked, but the results I get are different from what I expected. I have a minimal example:               \documentclass{article}     \usepackage{tikz}       \usetikzlibrary{positioning}     \begin{document}     \begin{tikzpicture}       \begin{scope}[red]         \coordinate (a) at (0,0);         \node[below=of a,draw] (anode) {};         \draw[-|] (anode) -- (a);         \node (b) at (.3,0) {};         \node[below=of b,draw] (bnode) {};         \draw[-|] (bnode) -- (b);       \end{scope}       \begin{scope}[green,dashed]         \coordinate (a) at (0,0);         \node[on grid,below=of a,draw] (anode) {};         \draw[->] (anode) -- (a);         \node (b) at (.3,0) {};         \node[on grid,below=of b,draw] (bnode) {};         \draw[->] (bnode) -- (b);       \end{scope}     \end{tikzpicture}     \end{document}      It results in the following figure: ![illustration of 'on grid' node positioning option](http://i.stack.imgur.com/j3Peh.png) I would have expected (and hoped...) that on the left, the dashed green node were positioned at the same height as the dashed green one on the right. (All other picture elements are correct, as far as I can tell.) From the description in the manual, I do not see why this is not the case: > When you say `above=1cm of somenode` with `on grid` set to true, the new > node will be placed in such a way that its center is 1cm above the center of > `somenode`. The only non-standard thing in my example is that then reference node is a `coordinate`, but I do not see why it results in the observed behavior, as this is just a node with only a center. I would be grateful for an explanation of the observed behavior, and perhaps workaround to get the behavior I expected.


title: How can I create a dynamic geometry file in Tex?

text: I have a file containing               \documentclass[10pt]{article}     \usepackage{pgf,tikz}     \usetikzlibrary{arrows}     \pagestyle{empty}     \begin{document}     \definecolor{uququq}{rgb}{0.25,0.25,0.25}     \definecolor{tttttt}{rgb}{0.2,0.2,0.2}     \begin{tikzpicture}[line cap=round,line join=round,>=triangle 45,x=1.0cm,y=1.0cm]     \clip(-2.5,-1.5) rectangle (4.5,6.08);     \draw(-0.5,2) circle (1.5cm);     \draw(1,2) circle (3cm);     \draw (0.5,4.24)-- (1,2);     \draw (1,2)-- (2.25,3.12);     \draw (0.5,4.24)-- (2.5,2);     \draw(0.25,2) circle (2.25cm);     \draw(1.75,2) circle (0.75cm);     \draw (1,2)-- (2.5,2);     \draw (1.73,2.08) -- (1.73,1.92);     \draw (1.77,2.08) -- (1.77,1.92);     \draw (2.5,2)-- (4,2);     \draw (3.23,2.08) -- (3.23,1.92);     \draw (3.27,2.08) -- (3.27,1.92);     \draw (-2,2)-- (1,2);     \draw (-2,2)-- (-0.34,3.49);     \draw (-0.34,3.49)-- (0.5,4.24);     \draw (0.05,3.93) -- (0.11,3.79);     \draw (0.5,4.24)-- (1.33,4.98);     \draw (0.88,4.68) -- (0.94,4.54);     \draw (0.5,4.24)-- (2.25,3.12);     \draw (1.35,3.78) -- (1.31,3.63);     \draw (1.39,3.75) -- (1.35,3.6);     \draw (1.43,3.73) -- (1.39,3.58);     \draw (2.25,3.12)-- (4,2);     \draw (3.11,2.66) -- (3.06,2.51);     \draw (3.15,2.63) -- (3.1,2.48);     \draw (3.19,2.61) -- (3.14,2.46);     \begin{scriptsize}     \fill [color=tttttt] (-2,2) circle (1.5pt);     \draw[color=tttttt] (-2.23,1.68) node {$A$};     \fill [color=black] (4,2) circle (1.5pt);     \draw[color=black] (4.1,2.26) node {$B$};     \fill [color=uququq] (1,2) circle (1.5pt);     \draw[color=uququq] (1.02,1.57) node {$C$};     \fill [color=uququq] (-0.5,2) circle (1.5pt);     \draw[color=uququq] (-0.4,2.26) node {$D$};     \fill [color=black] (-0.34,3.49) circle (1.5pt);     \draw[color=black] (-0.36,3.82) node {$M$};     \fill [color=uququq] (1.33,4.98) circle (1.5pt);     \draw[color=uququq] (1.34,5.35) node {$N$};     \fill [color=uququq] (0.5,4.24) circle (1.5pt);     \draw[color=uququq] (0.48,4.59) node {$H$};     \fill [color=uququq] (2.5,2) circle (1.5pt);     \draw[color=uququq] (2.56,1.9) node {$I$};     \fill [color=uququq] (2.25,3.12) circle (1.5pt);     \draw[color=uququq] (2.34,3.38) node {$J$};     \fill [color=uququq] (1.83,2.75) circle (1.5pt);     \draw[color=uququq] (1.79,2.5) node {$G$};     \end{scriptsize}     \end{tikzpicture}     \end{document}      and file was written in the program GeoGebra and I uploaded at http://www.mediafire.com/?r61yp96mwlm3t1h How can I create a file that point M moves on a circle in Tex as in GeoGebra?


title: Biblatex: Print ISBN only if DOI is not defined

text: I have a large set of references and I in most cases do have either   * ISBN   * DOI   * DOI and ISBN I'd like to setup a filter that prints the ISBN only when the DOI does not exist. How can I set up a filter that performs this conditional printing (I read this thread but didn't find a command to check whether an entry exists) If necessary I could also define empty DOI entries but this would be plenty of work.


title: LaTeX bibentry bug(?) and potential workaround: Multiple bibliography entries for single items?

text: As a preamble to all of this I am using `tufte-latex`, `bibentry`, `inputenc` with the `utf8` option, and `natbib` packages with MikTeX 2.9. There seems to be a bug/incompatibility with `bibentry` and UTF8 characters. The quick description of the issue is this: A bibliography entry contains UTF8 characters (I'm using CJK in the file) in one of it's fields (title specifically). Using BibTeX, and then LaTeX the document compiles and the bibliography appears correctly typeset, UTF8 characters and all. However, using `\bibentry{bibliogrpahy key}` to cite a UTF8 reference in the text body itself gives a garbled entry, i.e., the UTF8 chars are not being encoded properly. Here is a MWE showing the "bug":                \documentclass[openbib]{tufte-book}      \usepackage{CJK}      \usepackage[T1]{fontenc}      \usepackage[utf8]{inputenc}      \begin{document}      \frontmatter           \mainmatter      \chapter{testing bibenty}      Using bibentry with unicode:          \bibentry{utf8key}     \backmatter     \bibliographystyle{plain}     \bibliography{utf8bib}          \end{document}     %%% Local Variables:      %%% mode: latex     %%% TeX-master: t     %%% End:       The bibliography file utf8bib.bib contains:               @misc{utf8key,     title="The unicode chars are here: \begin{CJK}{UTF8}{cyberbit}日本\end{CJK}",     author="Using Unicode CJK with bibentry",     howpublished="MWE on Stackoverflow."     }      From searching for a solution to this it seems that this is a failing with `bibentry` itself. I attempted to contact the package author however received no reply. As an idea for a potential workaround I thought of this: could I create two bibliography files one of them with all of my bib. items, including the UTF8 entries however having these characters stripped, and a second one duplicating the bib items with the UTF8 chars. Here's the catch. I'd like to use the stripped bibliography for using `\bibentry`, however I want to use the unstripped bibliography to be used for the printed bibliography at the end of the text. The problem is to avoid having duplicated bib items, stripped and non-stripped, in the final bibliography. Is there a way to flag or select which item is printed or is this idea just not possible?


title: Side by side figures containing subfloats

text: Is it possible to get two `figure` environments side by side across the top of a page, where both (or at least 1) contains subfloats? IE: ![Mock Up](http://i.imgur.com/OYb0h.png) And if so, how? I am currently using the `subfig` package with a combination of `figure`/`subfloat` in my document.


title: rewrite tex.web in C++?

text: A few weeks ago I read this article about some difficultites bring TeX to the iPad. It made me wonder: why not **rewrite** `TeX.web` in C++11? The codebase itself is now quite stable, and (unfortunately) it won't be too many more years before it's completely frozen. I just downloaded the source; it's about 25,000 lines of WEB code. Let's say the code/comment ratio is 1/5, which results in around 5,000 lines of actual source code. At one line/minute hand rewrite, that's a little over two weeks. Even if these calculations are off a bit, it still seems like a "summer vacation" project. Yes, I know there is a lot more than just `TeX.web`. But it seems like a native C++ implementation (rather than a `web2c` compiliation) could be an interesting step in a different direction.


title: In LuaLaTeX, how do I pass the content of an environment to Lua verbatim?

text: In LuaLaTeX, how would I go about capturing the content of an environment for (verbatim) processing by Lua? For example, consider something like               \begin{foobar}       Hello {World}     \end{foobar}      I'd like to be able to take the content of the environment and pass it to Lua, as in               foobar("  Hello {World}\n")      (and Lua would then eventually pass the processed version back to LaTeX, but I can presumably handle that).


Same question posted on other portal : Why do fonts look thinner in adobe and different and richer in sumatra pdf. **Sumatra** ![Sumatra PDF](http://i.stack.imgur.com/K5LEt.png) **Adobe** ![Adobe PDF](http://i.stack.imgur.com/IqAez.png) **Adobe reader settings:** ![](http://i.stack.imgur.com/r1ID0.png)


title: Codename for "kp serif" in TeX

text: mainly i'm aiming at doing the same thing as discussed in this question (How To Change Math Font Only?); except i want to use the "km serif" font and no matter what i search for on the web, i don't find the code to enter in the ”\renewcommand”-command. Is there one and if there isn't, how could i work around it? I do love the kp serif font but the math mode version of it just looks completely bonkers - i'd rather want to use the garamond font if thats possible using pdfLaTeX - if it isn't i'd probably use Computer Modern Bright. Thanks for reading my question, perhaps you can answer it? Greetings


title: How to use conditional (if statements) with data from acronyms?

text: I am using acronym for autocomplete my text like mailing functions. So I want the long text from acronym using all the time, and I am using `\acro{}{}` to define, so `\acro{Maria}{f}` - for me shows that the person called Maria is a women and I use `\ac{Maria}` to autocomplete my text. I can't have a good result using any of these functions. My code:               \documentclass[a4paper,12pt]{article}          \usepackage[utf8]{inputenc}     \usepackage[portuguese]{babel}     \usepackage[T1]{fontenc}          \usepackage[dua,nolist]{acronym}     \usepackage{ifthen}     \usepackage{etoolbox}     \usepackage[T1]{fontenc}     \usepackage{hyperref}     \usepackage{ifthen}     \usepackage{xstring}          \begin{document}          \begin{acronym}         \acro{a}{f} %f-female m-male         \acro{b}{}  %none-male a-female     \end{acronym}          \IfStrEq{f}{\ac{a}}{female}{male}          \ifstrequal{\ac{a}}{f}{female}{male}          \ifblank{\ac{b}}{female}{male}          \ac{a}          \ac{b}          \end{document}      Answer:               male     male     male     f      I spected               female     female     female     f


title: Problems with bst file, model5-names.bst. My references do not show the issue number (volume number)

text: In my references I need to write: > Liberman, M. C. 1978. Auditory nerve response from cats raised in a low > noise chamber. Journal of the Acoustical Society of America, 63(2), 442-455.               @article{Liberman1978442,         Author = {Liberman, M. C.},         Journal = {Journal of the Acoustical Society of America},         Number = {2},         Pages = {442-455},         Title = {Auditory nerve response from cats raised in a low noise chamber},         Volume = {63},         Year = {1978}}      This code demonstrates the problem:               \documentclass[final,3p,times,number]{elsarticle}     \usepackage{lineno}      \bibliographystyle{model5-names}     \biboptions{authoryear}      \begin{document}      \linenumbers      \section{Introduction}      The use of \ldots \citep{ Liberman1978442},      \bibliography{master}      \end{document}      This is `master.bib`:               @article{Liberman1978442,      Author = {Liberman, M. C.},      Journal = {Journal of the Acoustical Society of America},      Number = {2}, Pages = {442-455},      Title = {Auditory nerve response from cats raised in a low noise chamber},      Volume = {63},      Year = {1978}}       My problem is that when I compile, shows: > Liberman, M. C. 1978. Auditory nerve response from cats raised in a low > noise chamber. Journal of the Acoustical Society of America, 63, 442-455. I will be very grateful for any help! :) Thanks in advance!


title: Seemingly trivial: verbatim, newenvironment, and colorbox

text: I am, once again, trying to achieve what seems like a trivial goal. I want to use `\newenvironment` to define a verbatim environment _with_ a background color. I need to define my own environment because I need to run extra commands when opening the environment. Here's what I have so far:               \newenvironment{response}{%       % here, run extra commands, mostly related to \tikzmark and other extra legwork       \verbatim     }{       \endverbatim     }      This works fine. I tried the following to add a background color.   * Define a background color for FancyVrb (Background color for fancyvrb), but then if I put `\begin{Verbatim}` and `\end{Verbatim}` in lieu of `\verbatim` and `\endverbatim`, this no longer works,   * Playing myself with `\color@setgroup` and `\color@endroup` but these do not seem to be exposed by the xcolor package.   * Using an lrbox, but again, any pair of `\begin{foo}` and `\end{foo}` that go _across_ the environment are rejected (possibly because of `\verbatim`?) I'm quite puzzled now and would love to have any pointers. Thanks! **UPDATE** : the first comment has the solution, namely my failing to use \VerbatimEnvironment!


title: How do I get rid of vim-latex's output from PDF viewing?

text: I use vim with VIM-LaTeX. I can use `\ll` to compile and `\lv` to view. I've set the following options in my `.vimrc` file:               let g:tex_flavor='latex'     let g:Tex_DefaultTargetFormat='pdf'      When I type `\lv`, it opens the (previously generated) PDF in evince, as desired. However, when I quit evince, my vim window (not the buffer itself) is overwritten with some of evince's exit messages. For example, with a window like this:               \documentclass{article}     \begin{document}     Hello, world!     \end{document}     ~     ~      pressing `\lv` and then quitting evince yields this: ![Example of weird buffer action](http://i.imgur.com/BbWfUJ5.png) Running `:redraw!` fixes it, but `:redraw` doesn't. How can I prevent this behavior? I've found a solution but would like to know if there's a better one.


title: PgfPlots bar with missing data causes columns to be "misplaced"

text: I looked for a similar problem here in SE but I couldn't find it. It's just driving me crazy :| Here is a MWE:               \documentclass[xcolor=dvipsnames, 10pt, pdflatex]{beamer}     \usepackage[utf8x]{inputenc}     \usepackage{graphicx}     \usepackage{animate}     \usepackage{multirow}     \usepackage{pgfplots}     \pgfplotsset{compat=1.7}          \mode<presentation>{     \usetheme{Warsaw}  % Madrid, CambridgeUS, default, Pittsburgh     \useinnertheme{rounded} % rectangles     }          %\usepackage{beamerthemesplit}     \setbeamertemplate{navigation symbols}{}     %\usepackage{multicol}     %%%%%%%%%          \begin{document}          \section{Graphs}     \begin{frame}     \begin{tikzpicture}       \begin{axis}[         ybar,         axis x line=bottom,         axis y line=left,             xmax=12,         style={font=\footnotesize},         symbolic x coords ={1, 2, 4, 6, 12},         legend entries={A, B},         legend style={draw=none,at={(1.38, 0.5)}, anchor=east, font=\scriptsize},         legend columns=1]     \addplot table [x=X,y=A1] {TableGraphs.dat};     \addplot table [x=X,y=B1] {TableGraphs.dat};     \end{axis}     \end{tikzpicture}     \end{frame}          \begin{frame}     \begin{tabular}{c}     \begin{tikzpicture}       \begin{axis}[ scale only axis, height=0.25\textheight, width=0.65\linewidth, max space between ticks=40,          ybar,         style={font=\footnotesize},         xmax=12,         axis x line=bottom,         axis y line=left,         symbolic x coords ={1, 2, 4, 6, 12},         legend entries={A2, A3},         legend style={at={(1.38,0.5)},anchor= east, draw=none,font=\scriptsize},          legend columns=1,         unbounded coords=jump]        \addplot table [x=X,y=A2] {TableGraphs.dat};        \addplot table [x=X,y=A3] {TableGraphs.dat};     \end{axis}     \end{tikzpicture} \\     \begin{tikzpicture}       \begin{axis}[scale only axis, height=0.3\textheight, width=0.65\linewidth, max space between ticks=40,         symbolic x coords ={1, 2, 4, 6, 12},          style={font=\footnotesize},         axis x line=bottom,         axis y line=left,         xmax=12,         legend entries={B2, B3},         legend style={at={(1.38,0.5)}, anchor=east, draw=none, font=\scriptsize},         legend columns=1]          \addplot table [x=X,y=B2, unbounded coords=jump] {TableGraphs.dat};          \addplot table [x=X,y=B3, unbounded coords=jump] {TableGraphs.dat};     \end{axis}     \end{tikzpicture}     \end{tabular}     \end{frame}          \begin{frame}     \begin{tabular}{c}     \begin{tikzpicture}       \begin{axis}[scale only axis, height=0.25\textheight, width=0.65\linewidth, max space between ticks=40,          ybar,         font=\footnotesize,         axis x line=bottom,         axis y line=left,         symbolic x coords ={1, 2, 4, 6, 12},         legend entries={A4, A5},         legend style={at={(1.48,0.5)},anchor= east, draw=none, font=\scriptsize},          legend columns=1]          \addplot table [x=X,y=A4, unbounded coords=jump] {TableGraphs.dat};          \addplot table [x=X,y=A5,unbounded coords=jump] {TableGraphs.dat};     \end{axis}     \end{tikzpicture} \\     \begin{tikzpicture}       \begin{axis}[scale only axis, height=0.25\textheight, width=0.65\linewidth, max space between ticks=40,          symbolic x coords ={1, 2, 4, 6, 12},         font=\footnotesize,         axis x line=bottom,         axis y line=left,         unbounded coords=jump,         legend entries={B4, B5},          legend style={at={(1.48,0.5)}, anchor=east, draw=none, font=\scriptsize},          legend columns=1]          \addplot table [x=X,y=B4,unbounded coords=jump] {TableGraphs.dat};          \addplot table [x=X,y=B5,unbounded coords=jump] {TableGraphs.dat};     \end{axis}     \end{tikzpicture}     \end{tabular}     \end{frame}          \end{document}      Here is the data I used:               X   A1  B1  A2  B2  A3  B3  A4  B4  A5  B5     1   6.8333333333    27.25   42.25   3.2991666667    69.4166666667   0.3233333333    37.25   0.7733333333    42.1666666667   0.19     2   14.3333333333   91.1666666667   90.5    3.1366666667    181 0.32    17.3333333333   0.6166666667    18.8333333333   0.165     4   24.3333333333   148.3333333333  160.6666666667  3.1933333333    303.6666666667  0.33    11.6666666667   0.8066666667    12  0.2233333333     6   56  349.5   387 3.405   900.5   0.335   5.5 0.96    4.5 0.245     12  125 1195    1301    3.5 nan nan nan nan nan nan      And here is page 2 of the output: ![enter image description here](http://i.stack.imgur.com/oXa1D.png) and page 3 ![enter image description here](http://i.stack.imgur.com/AjPqm.png) The problem is in the bar chart in the first picture (2nd page of the output) and in the bar graph of the second picture (3rd page of the output). There's a bar missing. The table represent running times and gaps for algorithms. For the larger instances, on the right of the x axis, there are missing values. But both the bar chart start only with 1 red bar, while they should have 2 bar for each x value and in the first graph have only a blue bar at the end, while in the second they should stop at 6, since both values associated to 12 are missing. Here are the same graphs, in the same order, in Excel ![enter image description here](http://i.stack.imgur.com/0fwjL.png) ![enter image description here](http://i.stack.imgur.com/Nluol.png) Am I missing something? thanks.


title: Define the size of an imported picture

text: Is it possible to use the width of the paper as a variable in order to set the width of an imported graphics? For instance when I want the picture size to be the width of the paper, minus 3 centimeters, or half of the paper's width etc.


title: Listing not printing inside " "

text: > **Possible Duplicate:**   >  Listings package not correctly showing PHP strings I'm using listings to include C code, but I've a problem: when I insert in the listing a **printf** like the following                 printf("inc_count(): thread \%ld, count = \%d  Threshold reached.\n", a,b);      The text inside the " .. " is not shown. I haven't found a way to fix this, I think it should be trivial and maybe I'm just using the wrong keywords... Can you help me? EDIT: Usage example:               \begin{lstlisting}[language=C, label=cond-var, caption="Condition variables usage example"]     printf("inc_count(): thread \%ld, count = \%d  Threshold reached.\n",                   my_id, count);     \end{lstlisting}      This is what is shown ![enter image description here](http://i.stack.imgur.com/rLAC9.png)


title: Listings remove single quotes after I made it look good

text: > **Possible Duplicate:**   >  Listings package not correctly showing PHP strings So I've used this code for my listings. However it seems to ignore single and double quotes and everything inside them and does not print it. Anybody have any idea why? Here is the copy of the code if your too lazy to click :)                \usepackage{listings}      \usepackage{courier}      \lstset{              basicstyle=\footnotesize\ttfamily, % Standardschrift              %numbers=left,               % Ort der Zeilennummern              numberstyle=\tiny,          % Stil der Zeilennummern              %stepnumber=2,               % Abstand zwischen den Zeilennummern              numbersep=5pt,              % Abstand der Nummern zum Text              tabsize=2,                  % Groesse von Tabs              extendedchars=true,         %              breaklines=true,            % Zeilen werden Umgebrochen              keywordstyle=\color{red},                 frame=b,               %        keywordstyle=[1]\textbf,    % Stil der Keywords      %        keywordstyle=[2]\textbf,    %      %        keywordstyle=[3]\textbf,    %      %        keywordstyle=[4]\textbf,   \sqrt{\sqrt{}} %              stringstyle=\color{white}\ttfamily, % Farbe der String              showspaces=false,           % Leerzeichen anzeigen ?              showtabs=false,             % Tabs anzeigen ?              xleftmargin=17pt,              framexleftmargin=17pt,              framexrightmargin=5pt,              framexbottommargin=4pt,              %backgroundcolor=\color{lightgray},              showstringspaces=false      % Leerzeichen in Strings anzeigen ?              }      \lstloadlanguages{% Check Dokumentation for further languages ...              %[Visual]Basic              %Pascal              %C              %C++              %XML              %HTML              Java      }         %\DeclareCaptionFont{blue}{\color{blue}}             %\captionsetup[lstlisting]{singlelinecheck=false, labelfont={blue}, textfont={blue}}       \usepackage{caption}     \DeclareCaptionFont{white}{\color{white}}     \DeclareCaptionFormat{listing}{\colorbox[cmyk]{0.43, 0.35, 0.35,0.01}{\parbox{\textwidth}{\hspace{15pt}#1#2#3}}}     \captionsetup[lstlisting]{format=listing,labelfont=white,textfont=white, singlelinecheck=false, margin=0pt, font={bf,footnotesize}}


title: Text running off the page?

text: When I typeset to LaTex from Scrivener,the text runs off the page. Each paragraph shows up as a single line that runs off the page. Does anyone know how do I prevent that? I'm sure there is a super obvious solution to this but I don't know what it is. Thanks!


title: Remove vertical space between two chapters in table of contents in latex

text: I want to remove vertical space between two chapters in table of contents. I can remove the vertical space between chapter and a section by using               \usepackage[titles,subfigure]{tocloft}     \renewcommand\cftchapafterpnum{\vskip -2pt}      But i dont know how to remove the spaces between two chapters. Please help me to figure it out.


title: Renew command begin figure?

text: > **Possible Duplicate:**   >  Macro for figure position? Is it possible to make change that changes all instances of               \begin{figure}      into               \begin{figure}[h]      ?


title: Why does my linebreak not work?

text: I have the following code:               \section{Questions}     \freequestion What is the largest (LOC) class in the project? \par          \makebox[\textwidth]{%     \begin{tabularx}{\textwidth}{|X|S|S|S|S|S|X|}       \hline       & $--$ & $-$ & $-/+$ & $+$ & $++$ &\\       \hline       The necessary information was easy to find & $\square$ & $\square$ & $\square$ & $\square$ & $\square$ & The necessary information was hard to find\\       \hline       Information retrieval requires redundant user input  & $\square$ & $\square$ & $\square$ & $\square$ & $\square$ & Information retrieval does not require redundant user input\\     \\\hline     \end{tabularx}%     }          \freequestion Please share any other remarks or ideas for improving the     workshop or this survey: \par      And here the macro:               \def\freequestion#1\par{#1\par\nobreak         \begingroup\nobreak         \advance\leftskip by 2pc         \hrule width 0pt height 1.7\baselineskip\hrulefill         \hrule width 0pt height 1.7\baselineskip\hrulefill         \par         \medskip         \endgroup         }      Now I wanted to add a linebreak or two before and after the table in the middle, but I already tried `\\\`, `\newline` or `\par` and `\parskip` but nothing worked. why?


title: Weird axis number placement in pgfplots

text: I'm having a problem with my axis. I'm not entirely sure axis is the right word, but take a look at the output and you will understand![weird axis number placement](http://i.stack.imgur.com/85HfN.png) Upper right corner, first of all, the multiplier 10^-3 is placed wrongly (in my oppinion) second of all, I really don't want no multiplier, I want the colorbar to show 0.001, 0,0012 etc. It is produced from the matlab script matlab2tikz.m. A MWE is not possible as it requires a .png file created by the matlab script to compile properly (don't think i can attach separate files to my post in this forum), but I can at least display the contents of my .tex file               \documentclass[tikz]{standalone}     \usetikzlibrary{calc}     \usetikzlibrary{arrows}     \usetikzlibrary{automata,positioning}     \usepackage{verbatim}     \usetikzlibrary{decorations}     \usetikzlibrary{patterns}     \usetikzlibrary{shapes,fit,chains}     \usetikzlibrary{matrix}     \usepackage{pgfplots}     \pgfplotsset{compat=newest}     \pgfplotsset{plot coordinates/math parser=false}     \pgfplotsset{every axis/.append style={line width=2pt,font=\huge}, every  mark/.append style={solid}}     \pgfplotsset{every axis plot post/.append style={mark=none}}          \usepackage{amssymb,amsmath,amstext,mathtools,siunitx}          \begin{document}          \begin{tikzpicture}          \begin{axis}[%     view={0}{90},     width=3.79861111111111in,     height=3.565625in,     scale only axis,     xmin=0.5, xmax=181.5,     xlabel={N},     % y dir=reverse,     ymin=0.5, ymax=181.5,     ylabel={M},     name=plot1,     colormap/jet,     colorbar,     point meta min=4.5595812681043e-08,     point meta max=0.00152621508007855]     \addplot graphics [xmin=5.000000e-01, xmax=1.815000e+02, ymin=5.000000e-01, ymax=1.815000e+02] {spongeLayerDequalsTen-1.png};     \end{axis}     \end{tikzpicture}%          \end{document}      I managed to change formating on the axis numbers by passing               /pgf/number format/.cd,     fixed,     fixed zerofill,precision=2,      as axis options, I'm guessing something similar can be done to colorbar, just don't quite know how...


title: "Missing number" error using `\pgfmathsetmacro` with the `ifthenelse` operator

text: I am trying to use logical functions in `pgfmath` and getting unexpected errors. It seems to be related to the use of `\pgfmathsetmacro`, which according to my understanding should be equivalent to `\pgfmathparse{whatever}\let\macro=\pgfmathresult`. However, the following example from the manual works with `\pgfmathparse` and gives the error               ! Missing number, treated as zero.     <to be read again>                         n     l.52 ...etmacro\macro{ifthenelse(5==4,"yes","no")}                                                        \macro      when used with `\pgfmathsetmacro`:               \pgfmathparse         {ifthenelse(5==4,"yes","no")}% Works     \pgfmathsetmacro\macro{ifthenelse(5==4,"yes","no")}% Fails      Shouldn't I be able to do this?


title: Is it possible to generate sudoku games with LaTeX?

text: I am a fan of sudoku and I was wondering if it is possible to randomly generate sudoku tables with their solutions in LaTeX. I see a few problems in the generation of numbers in the tables, but, sincerely, I wouldn't know where to start.


title: Sub- and superscript in a different font and in different locations

text: 1. In an equation, I need sub- and superscript in a different font, other equation part as a different font. I am using the MiKTeX version 2.9. How to get this style in the output?   2. The superscript position is changing while the equation part containing sub- and superscript characters. I.e.:              $$A+B_{\alpha+\beta}\rightarrow C+D_{\alpha+\beta}^{\prime}$$      in the first and second part subscript in different positions


title: xelatex compilation of devanagari documents looks BAD!

text: Here is the MWE:               \documentclass[b5paper]{memoir}          \usepackage{fontspec, polyglossia, devanagaridigits}          \setmainfont[Script=Devanagari, Scale=1.5]{DejaVu Sans}     \newcommand{\devanagarinumeral}[1]{%       \devanagaridigits{\number\csname c@#1\endcsname}}          \renewcommand{\chaptername}{}          \begin{document}          \chapterstyle{veelo}          \chapter{भाग १}          घड्याळात --- एवढ्यात          \end{document}      My editor (KATE) uses the same font (DejaVu Sans). And displays the text correctly. See attached image. When compiled, the document produces square boxes! ![How it appears in my editor - KATE](http://i.stack.imgur.com/FZiPf.png)


title: Cleveref with counters with same name

text: I am trying to use the `cleveref` package. I have the following counters defined (hopefully this is the right way to do it!)               \newtheorem{thm}{Theorem}[section]     \newtheorem{lemma}[thm]{Lemma}     \newtheorem{cor}[thm]{Corollary}      This works as I would like (i.e. Theorem 1.1, Corollary 1.2, Lemma 1.3, etc.) My problem is `\cref` always returns Theorem 1.2, Theorem 1.3. I Perhaps this is not right? (In my preamble)               \crefname{thm}{theorem}{theorem's}     \crefname{lemma}{lemma}{lemma's}


title: space bibliography

text: my bibliography looks like               Abowd, J.M., F. Kramarz, and D.N. Margolis. 1999. High-wage     Workers and High-wage Firms.Econometrica, 67(2): 251333.          Abowd, J.M., R.H. Creecy, and F. Kramarz. 2002. Computing     Person and Firm E¤ects Using Linked Longitudinal Employer-Employee      I would like to remove the space between the entries. how do i do that? To compile the bibliography I am using aea.bst downloadable from here http://www.aeaweb.org/templates/latex_templates.zip


title: Condense the space between bibliographic entries

text: In order to save space, I would like to condense the bibliography, specifically, reduce the amount of vertical space between entries. Currently, it seems there is double-space between consecutive entries. I use the "article" layout in LyX.


title: LuaTeX cyrillic hyphenation problems

text: I am trying to use LuaTeX (LuaLaTeX) in MiKTeX 2.9 and I'm stuck with getting it to load cyrillic hyphenation patterns. I'm quite new to LuaTeX, so maybe there's something special about hyphenation and language support in it? Here's my sample document:               \documentclass{article}          \usepackage{fontspec}     \defaultfontfeatures{Ligatures=TeX}     \usepackage[russian]{babel}          \setmainfont{Charis SIL}          \title{Заголовок}     \author{Автор}     \date{}          \begin{document}          \maketitle          \begin{abstract}     Цель работы: проверить \LuaTeX.     \end{abstract}          Проверка. Очень длинная строка для проверки переносов: дезоксирибонуклеиновый тест.          \end{document}      I get no hyphenation and overfull hbox in this example. Same text hyphenates nicely in XeTeX and pdfTeX.


title: Better way to make sidebars?

text: I am producing pages for a website using pdfTeX. My style is to use lots of bulleted lists and also lots of cutouts (sidebars such as many magazines use). I am using wrapfig.sty for the cutouts; the version I have is version 3.6 from 2003. It is very erratic and gets along especially badly with bulleted lists. Right now I have made a work-around by defining my own lists, but they are not nearly as nice as the LaTeX system. I have tried tweaklist but it seems to make things worse, not better. Is there anything better than wrapfig? It occured to me that one of the new typesetting systems that are TeX with additional capabilities (such as XeTeX and ConTeXt) might make the situation easier. Does anyone have any recommendations?


title: Fill opacity problem with pdflatex while upgrading MiKTeX from version 2.7 to 2.9

text: It's my first post. I solved it when writing this so I send it anyway in case it helps someone. When compiled with pdflatex.exe from MiKTeX 2.7 it works. When compiled with `pdflatex.exe` from MiKTeX 2.9 the `fill opacity` property of `\addplot` also compiles without errors but when opened in a pdf reader, the reader returns error: `pgf@ca0.5 blablabla`. To fix this problem (I don't know why) you should avoid using packages: `pstricks`, `pst-node`, `pst-plot`, `pst-circ`. Here's my corrected code               \documentclass[addressstd,a4paper,10pt]{article}          \usepackage{tikz}     \usepackage{pgfplots}     %\usepackage{pstricks, pst-node, pst-plot, pst-circ}          \begin{document}     \begin{tikzpicture}     \begin{semilogxaxis}          \addplot [black,thick,ybar interval,fill=black,]          coordinates {(22.1,68.9) (44.2,74.4) (88.4,86.5)};     \addlegendentry{one};          \addplot [blue,thick,ybar interval,fill=blue,fill opacity=.5]          coordinates {(22.1,78.9) (44.2,64.4) (88.4,86.5)};     \addlegendentry{two};          \end{semilogxaxis}     \end{tikzpicture}     \end{document}      Do you know why?


title: Create an annotation for table text on the page border

text: I have a table with 2 columns (for vocables, but also complete sentences) and for one of these 2 columns I want to add annotations on the page border. It must however be possible to associate the annotation with a specific set of words (in case of a complete sentence on my vocable sheet where I annotate only one or several words of a sentence). I thought of something like this. However this package doesn't work when you use tables, what I'm doing ): Thank you very much for any hint!


title: Good XeTeX Books

text: I'm looking for some good books on XeTeX to have them as references whenever I want to look up something or learn something new. Level doesn't really matter, either novice or advanced would do but I'd really like the book(s) to be broad in content - like some of the LaTeX books that I've read: _A Guide to LaTeX_ by H. Kopka and P. Daly _The Not So Short Introduction to LATEX2ε_ by T. Oetiker Many thanks for any recommendations,


title: How to make math symbols like \prod smaller

text: I know this is simple, but I can't seem to find the correct code. If I have `$d \prod$` how can I make the height of the `\prod` symbol equal to that of `d`? Thanks!


title: Unusual numbering: combine alph, Alph, arabic

text: I would like to have an unusual numbering `aAa` going as follows:                0 -> *     -------------------------      1 -> a      2 -> b        ...     25 -> y     26 -> z     -------------------------     27 -> A     28 -> B        ...     51 -> Y     52 -> Z     -------------------------     53 -> 1     54 -> 2     55 -> 3        ...      Since it might be used in page numbering or similar sensitive contexts, the command `\@aAa` should be introduced so that `\pagenumbering{aAa}` works (I'm not going to use it this way but I still need it). As well, a fully expandable solution is welcomed.


title: Parcolumns: Unbalanced Columns

text: I'm using parcolumns to help design a resume but it's giving me some trouble by adding lots of extra space in the left and right columns. Code (compile with XeLaTeX):               \documentclass[10pt]{article}     \renewcommand*{\familydefault}{\sfdefault} % Sans serif font     \usepackage{fontspec}     \defaultfontfeatures{Mapping=tex-text}          \usepackage{xunicode,xltxtra,url,parskip}     \usepackage{parcolumns}     \usepackage{lipsum}          \usepackage[usenames,dvipsnames]{xcolor}     \definecolor{lightblue}{RGB}{48,138,255}     \newcommand{\blue}[1]{\color{lightblue}{#1}}          \usepackage[margin=0.5in]{geometry}          \usepackage{hyperref}          \usepackage{titlesec} % Used to customize the \section command     \titleformat{\section}{\Large\raggedright\bfseries}{}{0em}{}[\titlerule] % Text formatting of sections     \titlespacing{\section}{0pt}{3pt}{3pt} % Spacing around sections     \titleformat{\subsection}{\Large\raggedright}{}{1em}{} % Formatting subsection     \titlespacing{\subsection}{0pt}{3pt}{3pt}                    \begin{document}          \pagestyle{empty} % Removes page numbering          \begin{parcolumns}[sloppy,colwidths={1=0.28\textwidth}]{2}          %%%%%%%%%%%%%%%LEFT COLUMN     \colchunk[1]{%     \par{\Huge \bfseries Joel \\ Hawkins}     \section{}          \begin{center}     \begin{minipage}{0.26\textwidth}      \lipsum[1]     \end{minipage}     \end{center}          \begin{center}     \includegraphics[width=0.28\textwidth]{square}     \end{center}          \begin{center}     Portland, OR \\     +1 (555) 555 - 5555 \\     \href{mailto:mail@domain.edu}{mail@domain.edu} \\     \href{http://google.com}{my webpage}     \end{center}          \null     }     %%%%%%%%%%%%%%%RIGHT COLUMN     \colchunk[2]{%               %%%%Education     \section{Education}          \begin{tabular}{l l}          \textbf{Reed College}                   & \textbf{\blue{Bachelor of Arts in Physics}} \\     \textbf{\blue{Current}}                         & \footnotesize \textbf{Class of 2015} \\     \footnotesize Portland, OR              & \\     \multicolumn{2}{c}{} \\     %------------------------------------------------          \textbf{Boise High}              & \footnotesize \textbf{Class of 2011} \\     \textbf{School}             & \small Recipient of Academic Achievement Award \\     \footnotesize{Boise, ID}        & \\     \multicolumn{2}{c}{} \\          \end{tabular}          %%%%Work     \section{Work}          \begin{tabular}{l l}          \textbf{Reed College}                   & \textbf{\blue{Apple Certified Hardware Technician}} \\     \textbf{\blue{Current}}                 & \textbf{Computer Hardware Services} \\     September 2011                      & Solve students' \& faculty's hardware/software problems \\     \footnotesize{Portland, OR}             & Facilitate \& automate software deployment for all machines \\                                         & Repair machines \& provide support for students/faculty \\     \multicolumn{2}{c}{} \\     %------------------------------------------------          \textbf{PCS Learning Center}                & \textbf{\blue{Assistant Teacher}} \\     Summer 2012                         & Bolstered scientific skills in students (physics, robotics, code) \\     \footnotesize{Boise, ID}                    & Designed \& managed company website incl.~photo editing \\     \multicolumn{2}{c}{} \\     %------------------------------------------------          \textbf{AeroSpecialties Inc.}               & \textbf{\blue{Machine Shop Assistant}} \\     2010-2011                           & Operated CNC machines \\     \footnotesize{Boise, ID}                    & Assembled parts according to industry regulations \\                                         & Performed extended data entry for migrating computer systems \\     \multicolumn{2}{c}{} \\     \end{tabular}          \null     }     \end{parcolumns}               \end{document}      This gives the following (some unrelated code omitted): ![Parcolumns adding extra space](http://i.stack.imgur.com/EiIMq.png) Obviously there's WAY too much blank space in the left column between my name and also extra space between the Work and Experience sections which I didn't ask for. I think it's trying to balance the columns weirdly? Maybe you see what I'm trying to do here and I haven't found another package that can effectively create two columns of uneven width (sort of like having two minipages displayed side by side?). I've tried using `\vfill`, `\null`, `\mbox{}` but none of those work. How do I get it to not add space and even the columns?


title: Write treble clef in tex?

text: How to write treble symbol in Tex? http://en.wikipedia.org/wiki/Clef


title: Setting up LaTeX with Sublime Text 2 - Linux

text: I'm looking for some help setting ST2 up with LaTeX, so far I have downloaded texLive from here and have uncompressed it and ran `./install-tl`. I have also installed `LaTeXTools` on ST2. When I try to build a LaTeX document I get the following error:               COULD NOT COMPILE!          Attempted command:latexmk -cd -e $pdflatex='pdflatex -interaction=nonstopmode -synctex=1 %S %O' -f -pdf /home/colin/workspace/trunk/Documents/My Papers/Template/template.tex      I've also add it to my `$PATH` using `export PATH=$PATH:/usr/local/texlive/2013/bin/x86_64-linux`.


title: Add a fixed letter to all equation numbers

text: I am working on a supplementary for an article and I want the equation in this supplementary to have the letter "S" before the numbers of the equations (i.e. equations `(S1)`, `(S2)`, etc, instead of `(1)`, `(2)`, etc). I know I can do this for every equation separately by using `\tag{}`, but since I have many equations I am looking for an automated way.


title: Changing the format of figure, algorithm and equation numbering

text: This is a follow-up to this question. That allowed me to format references to an equation/figure/algorithm so that they started with an 'S'. What if I want to change the format in the original equation/figure/algorithm? For instance, if I entered               \begin{equation}     a=b     \label{eq:myeq}     \end{equation}      How would I get it to show up in the final document as:               a=b (S1)      Instead of:               a=b (1)      ?


title: Plotmarks of TikZ are off by 0.05 in x-direction

text: When I use Gonzalos Medinas' method in the link everything turns out fine except that my circles seems to be off by about 0.05 in the x-direction. This is his code:               \documentclass{article}     \usepackage{tikz}     \usetikzlibrary{plotmarks}          \begin{document}          \begin{tikzpicture}     \draw (0,-1)--(10,-1);     \node[mark size=3pt,color=red] at (0,-1) {\pgfuseplotmark{*}};     \node[mark size=5pt,color=blue] at (5cm,-1) {\pgfuseplotmark{triangle*}};     \node[mark size=4pt,color=olive] at (10cm,-1) {\pgfuseplotmark{square*}};          \draw[mark=*,mark size=3pt,mark options={color=olive}] plot coordinates {(0,-2)}        -- plot[mark=triangle*,mark options={color=blue}] coordinates {(5cm,-2)}        -- plot[mark=square*,mark size=4pt,mark options={color=red}] coordinates {(10cm,-2)};     \end{tikzpicture}          \end{document}      I use just a part of his code in another one of my plots: a slight modification (for changes see below)               \node[mark size=3pt,color=red] at (0,-1) {\pgfuseplotmark{*}};     \node[mark size=5pt,color=blue] at (2,-1) {\pgfuseplotmark{triangle*}};     \node[mark size=4pt,color=olive] at (1,-1) {\pgfuseplotmark{square*}};      He uses (e.g.)               \node[mark size=4pt,color=olive] at (10cm,-1) {\pgfuseplotmark{square*}};      while I use (no squares!)               \node[mark size=4pt,color=olive] at (1,-1) {\pgfuseplotmark{*}};      What is wrong here?